mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 00:59:51 +02:00
@rollup/plugin-replace: specify preventAssignment: true
(#33329)
This is to fix a warning since the option will be set to true in the next major version of the plugin
This commit is contained in:
@@ -28,7 +28,13 @@ if (BUNDLE) {
|
||||
// Remove last entry in external array to bundle Popper
|
||||
external.pop()
|
||||
delete globals['@popperjs/core']
|
||||
plugins.push(replace({ 'process.env.NODE_ENV': '"production"' }), nodeResolve())
|
||||
plugins.push(
|
||||
replace({
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
preventAssignment: true
|
||||
}),
|
||||
nodeResolve()
|
||||
)
|
||||
}
|
||||
|
||||
const rollupConfig = {
|
||||
|
Reference in New Issue
Block a user