Skip to content

Commit

Permalink
Suppress a warning in rollup due to the use of (#8960)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Sep 19, 2024
1 parent 9d8ed51 commit 0a183d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ function bundleConfig(name, entryFile) {
chunkFileNames: '[name].bundle.js',
entryFileNames: '[name].bundle.js',
},

// Suppress a warning (https://rollupjs.org/guide/en/#error-this-is-undefined)
// due to https://github.com/babel/babel/issues/9149.
//
// Any code string other than "undefined" which evaluates to `undefined` will work here.
context: 'void(0)',

plugins: [
babel({
babelHelpers: 'bundled',
Expand Down

0 comments on commit 0a183d8

Please sign in to comment.