Skip to content

Commit

Permalink
feat: Prepare for Vue 3
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed May 14, 2024
1 parent 287772e commit 5d390ae
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 46 deletions.
6 changes: 3 additions & 3 deletions lib/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { defineConfig, mergeConfig } from 'vite'
import { RemoveEnsureWatchPlugin } from './plugins/RemoveEnsureWatch.js'

import replace from '@rollup/plugin-replace'
import vue2 from '@vitejs/plugin-vue2'
import vue from '@vitejs/plugin-vue'
import browserslistToEsbuild from 'browserslist-to-esbuild'
import license from 'rollup-plugin-license'

Expand Down Expand Up @@ -124,8 +124,8 @@ export function createBaseConfig(options: BaseOptions = {}): UserConfigFn {
plugins: [
// Fix build in watch mode with commonjs files
RemoveEnsureWatchPlugin,
// Add vue2 support
vue2({
// Add vue 3 support
vue({
isProduction: !isDev,
style: {
trim: true,
Expand Down
152 changes: 111 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"homepage": "https://github.com/nextcloud/nextcloud-vite-config",
"license": "AGPL-3.0-or-later",
"version": "1.2.3",
"version": "2.0.0-alpha.0",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -36,7 +36,7 @@
},
"dependencies": {
"@rollup/plugin-replace": "^5.0.5",
"@vitejs/plugin-vue2": "^2.3.1",
"@vitejs/plugin-vue": "^5.0.4",
"browserslist-to-esbuild": "^2.1.1",
"magic-string": "^0.30.10",
"rollup-plugin-corejs": "^1.0.0",
Expand Down

0 comments on commit 5d390ae

Please sign in to comment.