We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8a832 commit ab211d2Copy full SHA for ab211d2
packages/react-scripts/config/webpack.config.js
@@ -414,12 +414,14 @@ module.exports = function(webpackEnv) {
414
{ helpers: true },
415
],
416
417
- plugins: isEnvDevelopment && [
418
- [
419
- require.resolve('babel-plugin-bundled-import-meta'),
420
- { importStyle: 'iife' },
421
- ],
422
+ plugins: isEnvProduction
+ ? undefined
+ : [
+ [
+ require.resolve('babel-plugin-bundled-import-meta'),
+ { importStyle: 'iife' },
423
+ ],
424
425
cacheDirectory: true,
426
cacheCompression: isEnvProduction,
427
// @remove-on-eject-begin
0 commit comments