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 authored and raimund-schluessler committed Oct 6, 2023
1 parent 28a71a8 commit 36ae8cf
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 346 deletions.
13 changes: 4 additions & 9 deletions lib/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { defineConfig, mergeConfig, type UserConfigExport, type UserConfigFn } f
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 @@ -112,16 +112,11 @@ 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,
},
template: {
compilerOptions: {
comments: isDev,
},
trim: !isDev,
},
}),
// Add custom plugins
Expand Down
Loading

0 comments on commit 36ae8cf

Please sign in to comment.