Skip to content

Commit 3b8bc55

Browse files
authored
fix: set legalComments: 'none' to align with Vite (#497)
1 parent e8feb9f commit 3b8bc55

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/vite/src/node/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ function resolveRolldownOptions(
735735
output.format === 'iife' ||
736736
(isSsrTargetWebworkerEnvironment &&
737737
(typeof input === 'string' || Object.keys(input).length === 1)),
738+
legalComments: 'none',
738739
minify:
739740
options.minify === 'oxc'
740741
? libOptions && (format === 'es' || format === 'esm')

playground/lib/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default defineConfig({
1717
target: 'chrome46',
1818
rollupOptions: {
1919
output: {
20+
legalComments: 'inline',
2021
banner: `/*!\nMayLib\n*/`,
2122
},
2223
},

0 commit comments

Comments
 (0)