Merge pull request #19922 from nicolo-ribaudo/vite-ignore-minified
Preserve webpack/vite ignore comments when minifying
This commit is contained in:
commit
5e3d26601e
@ -362,6 +362,9 @@ function createWebpackConfig(
|
||||
// V8 chokes on very long sequences, work around that.
|
||||
sequences: false,
|
||||
},
|
||||
format: {
|
||||
comments: /@lic|webpackIgnore|@vite-ignore/i,
|
||||
},
|
||||
keep_classnames: true,
|
||||
keep_fnames: true,
|
||||
module: isModule,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user