We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
legalComments: 'none'
1 parent e8feb9f commit 3b8bc55Copy full SHA for 3b8bc55
packages/vite/src/node/build.ts
@@ -735,6 +735,7 @@ function resolveRolldownOptions(
735
output.format === 'iife' ||
736
(isSsrTargetWebworkerEnvironment &&
737
(typeof input === 'string' || Object.keys(input).length === 1)),
738
+ legalComments: 'none',
739
minify:
740
options.minify === 'oxc'
741
? libOptions && (format === 'es' || format === 'esm')
playground/lib/vite.config.js
@@ -17,6 +17,7 @@ export default defineConfig({
17
target: 'chrome46',
18
rollupOptions: {
19
output: {
20
+ legalComments: 'inline',
21
banner: `/*!\nMayLib\n*/`,
22
},
23
0 commit comments