Skip to content

Commit 0a183d8

Browse files
authoredSep 19, 2024··
Suppress a warning in rollup due to the use of (#8960)
1 parent 9d8ed51 commit 0a183d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎rollup.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ function bundleConfig(name, entryFile) {
2020
chunkFileNames: '[name].bundle.js',
2121
entryFileNames: '[name].bundle.js',
2222
},
23+
24+
// Suppress a warning (https://rollupjs.org/guide/en/#error-this-is-undefined)
25+
// due to https://github.com/babel/babel/issues/9149.
26+
//
27+
// Any code string other than "undefined" which evaluates to `undefined` will work here.
28+
context: 'void(0)',
29+
2330
plugins: [
2431
babel({
2532
babelHelpers: 'bundled',

0 commit comments

Comments
 (0)
Please sign in to comment.