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 <[email protected]>
  • Loading branch information
susnux committed May 14, 2024
1 parent 868e2a7 commit 32d4f4b
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 47 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.

7 changes: 4 additions & 3 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 @@ -27,7 +27,8 @@
"lint": "eslint lib",
"lint:fix": "eslint --fix lib",
"test": "vitest run",
"test:coverage": "vitest run --coverage.enabled --coverage.all"
"test:coverage": "vitest run --coverage.enabled --coverage.all",
"prepare": "npm run build"
},
"peerDependencies": {
"browserslist": ">=4.0",
Expand All @@ -36,7 +37,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 32d4f4b

Please sign in to comment.