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 Sep 16, 2023
1 parent de57a84 commit b6cf14f
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 359 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 b6cf14f

Please sign in to comment.