Skip to content

Commit

Permalink
fix: Do not set vue's comments setting for dev builds as this might…
Browse files Browse the repository at this point in the history
… have unexpected behavior

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Dec 18, 2023
1 parent 026b470 commit 2b72ba6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import type { CoreJSPluginOptions } from 'rollup-plugin-corejs'
import type { UserConfigExport, UserConfigFn, Rollup } from 'vite'

import { readFileSync } from 'node:fs'
import { type CoreJSPluginOptions, corejsPlugin } from 'rollup-plugin-corejs'
import { corejsPlugin } from 'rollup-plugin-corejs'
import { minify as minifyPlugin } from 'rollup-plugin-esbuild-minify/lib/index.js'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import { defineConfig, mergeConfig, type UserConfigExport, type UserConfigFn, type Rollup } from 'vite'
import { defineConfig, mergeConfig } from 'vite'
import { RemoveEnsureWatchPlugin } from './plugins/RemoveEnsureWatch.js'

import replace from '@rollup/plugin-replace'
Expand Down Expand Up @@ -127,11 +130,6 @@ export function createBaseConfig(options: BaseOptions = {}): UserConfigFn {
style: {
trim: true,
},
template: {
compilerOptions: {
comments: isDev,
},
},
}),
// Add custom plugins
...plugins,
Expand Down

0 comments on commit 2b72ba6

Please sign in to comment.