Skip to content

Commit 94a4e31

Browse files
authored
fix(rollup): update cwc rollup config (carbon-design-system#9854)
### Description Update `carbon-web-components` rollup config to suppress the following warning: ``` @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`. ``` ### Changelog **Changed** - set `preventAssignment: true` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
1 parent 983db3f commit 94a4e31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

carbon-web-components/packages/carbon-web-components/tools/get-rollup-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ function getRollupConfig({
176176
}),
177177
replace({
178178
'process.env.NODE_ENV': JSON.stringify(mode),
179+
preventAssignment: true,
179180
}),
180181
...(mode === 'development'
181182
? [license(licenseOptions)]

0 commit comments

Comments
 (0)