Skip to content

Commit 205a472

Browse files
committed
always use the babel-plugin-bundled-import-meta plugin
1 parent ab211d2 commit 205a472

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,12 @@ module.exports = function(webpackEnv) {
414414
{ helpers: true },
415415
],
416416
],
417-
plugins: isEnvProduction
418-
? undefined
419-
: [
420-
[
421-
require.resolve('babel-plugin-bundled-import-meta'),
422-
{ importStyle: 'iife' },
423-
],
424-
],
417+
plugins: [
418+
[
419+
require.resolve('babel-plugin-bundled-import-meta'),
420+
{ importStyle: 'iife' },
421+
],
422+
],
425423
cacheDirectory: true,
426424
cacheCompression: isEnvProduction,
427425
// @remove-on-eject-begin

0 commit comments

Comments
 (0)