Skip to content

Commit

Permalink
Merge pull request #18 from nextcloud-libraries/vue3
Browse files Browse the repository at this point in the history
feat: Prepare for Vue 3
  • Loading branch information
susnux authored May 15, 2024
2 parents 287772e + 5d390ae commit 9f06290
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 9f06290

Please sign in to comment.