Skip to content

Commit 18045c0

Browse files
author
Morten N.O. Henriksen
committed
ModuleScopePlugin ignore @babel/runtime/helpers/esm/assertThisInitialized
Would be great with wildcard support in ModuleScopePlugin
1 parent 0508303 commit 18045c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ const reactRefreshWebpackPluginRuntimeEntry = require.resolve(
4949
'@pmmmwh/react-refresh-webpack-plugin'
5050
);
5151
const babelRuntimeEntry = require.resolve('babel-preset-react-app');
52+
const babelRuntimeEntryHelpers = require.resolve(
53+
'@babel/runtime/helpers/esm/assertThisInitialized'
54+
);
5255

5356
// Some apps do not need the benefits of saving a web request, so not inlining the chunk
5457
// makes for a smoother build process.
@@ -340,6 +343,7 @@ module.exports = function (webpackEnv) {
340343
reactRefreshWebpackPluginRuntimeEntry,
341344
reactRefreshOverlayEntry,
342345
babelRuntimeEntry,
346+
babelRuntimeEntryHelpers,
343347
]),
344348
],
345349
},

0 commit comments

Comments
 (0)