Merge pull request #19922 from nicolo-ribaudo/vite-ignore-minified

Preserve webpack/vite ignore comments when minifying
This commit is contained in:
Jonas Jenwald 2025-05-13 14:54:17 +02:00 committed by GitHub
commit 5e3d26601e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,