mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01: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:
parent
26c999152b
commit
2732a60ecd
@ -28,7 +28,13 @@ if (BUNDLE) {
|
|||||||
// Remove last entry in external array to bundle Popper
|
// Remove last entry in external array to bundle Popper
|
||||||
external.pop()
|
external.pop()
|
||||||
delete globals['@popperjs/core']
|
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 = {
|
const rollupConfig = {
|
||||||
|
@ -12,7 +12,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
'process.env.NODE_ENV': '"production"'
|
'process.env.NODE_ENV': '"production"',
|
||||||
|
preventAssignment: true
|
||||||
}),
|
}),
|
||||||
nodeResolve(),
|
nodeResolve(),
|
||||||
babel({
|
babel({
|
||||||
|
@ -77,7 +77,8 @@ const conf = {
|
|||||||
rollupPreprocessor: {
|
rollupPreprocessor: {
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
'process.env.NODE_ENV': '"dev"'
|
'process.env.NODE_ENV': '"dev"',
|
||||||
|
preventAssignment: true
|
||||||
}),
|
}),
|
||||||
istanbul({
|
istanbul({
|
||||||
exclude: [
|
exclude: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user