<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">rollup-plugin-babel</p>
<h3 dir="auto">Input code</h3>
<p dir="auto">I rollup the following code</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getRandomString(len) {
  let s = ''
  while (s.length &lt; len)
    s += Math.random().toString(36).substr(2, len - s.length)
  return s
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getRandomString</span><span class="pl-kos">(</span><span class="pl-s1">len</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">let</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s">''</span>
  <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">len</span><span class="pl-kos">)</span>
    <span class="pl-s1">s</span> <span class="pl-c1">+=</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-c1">36</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">substr</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s1">len</span> <span class="pl-c1">-</span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span>
  <span class="pl-k">return</span> <span class="pl-s1">s</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">it converted to</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  function getRandomString(e) {
    for (var n = &quot;&quot;; n.length &lt; e;) {
      n += Math.random().toString(36).substr(2, e - n.length);
    }

    return s;
  }"><pre class="notranslate">  <span class="pl-k">function</span> <span class="pl-en">getRandomString</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-s1">n</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">e</span><span class="pl-kos">;</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-s1">n</span> <span class="pl-c1">+=</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-c1">36</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">substr</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s1">e</span> <span class="pl-c1">-</span> <span class="pl-s1">n</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>

    <span class="pl-k">return</span> <span class="pl-s1">s</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default {
  input: './index.js',
  plugins: [
    babel({
      &quot;presets&quot;: [
        &quot;@babel/preset-env&quot;,
      ],
      &quot;plugins&quot;: [
        &quot;@babel/plugin-proposal-object-rest-spread&quot;,
        &quot;@babel/plugin-proposal-optional-chaining&quot;
      ]
    }),
    // uglify(),
  ],
  output: [
    {file: './dist/bundle.min.js',  name: &quot;Ingrow&quot;, format: 'iife'},
    {file: './dist/index.js', exports: &quot;default&quot;, format: 'cjs' }
  ]
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
  <span class="pl-c1">input</span>: <span class="pl-s">'./index.js'</span><span class="pl-kos">,</span>
  <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
    <span class="pl-en">babel</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
      <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span><span class="pl-kos">,</span>
        <span class="pl-s">"@babel/plugin-proposal-optional-chaining"</span>
      <span class="pl-kos">]</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
    <span class="pl-c">// uglify(),</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-c1">output</span>: <span class="pl-kos">[</span>
    <span class="pl-kos">{</span><span class="pl-c1">file</span>: <span class="pl-s">'./dist/bundle.min.js'</span><span class="pl-kos">,</span>  <span class="pl-c1">name</span>: <span class="pl-s">"Ingrow"</span><span class="pl-kos">,</span> <span class="pl-c1">format</span>: <span class="pl-s">'iife'</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
    <span class="pl-kos">{</span><span class="pl-c1">file</span>: <span class="pl-s">'./dist/index.js'</span><span class="pl-kos">,</span> <span class="pl-c1">exports</span>: <span class="pl-s">"default"</span><span class="pl-kos">,</span> <span class="pl-c1">format</span>: <span class="pl-s">'cjs'</span> <span class="pl-kos">}</span>
  <span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">to give something that doesn't make error<br>
now its made Uncaught ReferenceError: s is not defined</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>"@babel/cli": "^7.14.5",</li>
<li>"rollup": "^2.52.2",</li>
<li>node version: v12.18.3</li>
</ul>
<h3 dir="auto">Possible solution</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I have upgraded from babel 6.25.0 to @babel/core 7.0.0 by using the <code class="notranslate">babel-upgrade --write</code> comand.</p>
<p dir="auto">I am using webpack and babel together. I am able to run webpack-dev-server fine after the upgrade. When I attempt to start my app in prod and run my build command, the build immediately fails pointing to <code class="notranslate">@babel/core</code> within <code class="notranslate">babel-loader</code> with this error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR in ./src/index.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: Invalid value used as weak map key
    at WeakMap.set (&lt;anonymous&gt;)
    at loadCachedDescriptor (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:84:20)
    at createPluginDescriptors.map.desc (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:63:108)
    at Array.map (&lt;anonymous&gt;)
    at alias (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:63:96)
    at cachedFunction (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/caching.js:33:19)
    at plugins.plugins (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:28:77)
    at mergeChainOpts (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:319:26)
    at /Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:283:7
    at buildRootChain (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:68:29)
    at loadPrivatePartialConfig (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/partial.js:85:55)
    at loadFullConfig (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/full.js:43:39)
    at process.nextTick (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/transform.js:28:33)
    at process._tickCallback (internal/process/next_tick.js:61:11)"><pre class="notranslate"><span class="pl-c1">ERROR</span> <span class="pl-k">in</span> <span class="pl-kos">.</span><span class="pl-c1">/</span><span class="pl-s1">src</span><span class="pl-c1">/</span><span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">jsx</span>
<span class="pl-v">Module</span> <span class="pl-s1">build</span> <span class="pl-en">failed</span> <span class="pl-kos">(</span><span class="pl-s1">from</span> <span class="pl-kos">.</span><span class="pl-c1">/</span><span class="pl-s1">node_modules</span><span class="pl-c1">/</span><span class="pl-s1">babel</span><span class="pl-c1">-</span><span class="pl-s1">loader</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span><span class="pl-kos">)</span>:
TypeError: <span class="pl-v">Invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">used</span> <span class="pl-k">as</span> <span class="pl-s1">weak</span> <span class="pl-s1">map</span> <span class="pl-s1">key</span>
    <span class="pl-s1">at</span> <span class="pl-v">WeakMap</span><span class="pl-kos">.</span><span class="pl-c1">set</span> <span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">anonymous</span><span class="pl-c1">&gt;</span>)
    at loadCachedDescriptor (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:84:20)
    at createPluginDescriptors.map.desc (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:63:108)
    at Array.map (<span class="pl-c1">&lt;</span><span class="pl-ent">anonymous</span><span class="pl-c1">&gt;</span>)
    at alias (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:63:96)
    at cachedFunction (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/caching.js:33:19)
    at plugins.plugins (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-descriptors.js:28:77)
    at mergeChainOpts (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:319:26)
    at /Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:283:7
    at buildRootChain (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/config-chain.js:68:29)
    at loadPrivatePartialConfig (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/partial.js:85:55)
    at loadFullConfig (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/config/full.js:43:39)
    at process.nextTick (/Users/tjohnson/Public/repos/api-manager-web/node_modules/@babel/core/lib/transform.js:28:33)
    at process._tickCallback (internal/process/next_tick.js:61:11)</pre></div>
<p dir="auto">I have spent a long time looking for similiar issues, opened a question on SO, and unfortunately I have not had any luck resolving this. Thank you for the help.</p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
I expect to be able to run my build command and bundle my app for prod.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
	&quot;presets&quot;: [&quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot;, &quot;react-app&quot;],
	&quot;env&quot;: {
		&quot;development&quot;: {
			&quot;plugins&quot;: [&quot;react-hot-loader/babel&quot;]
		},
		&quot;test&quot;: {
			&quot;plugins&quot;: [
				[&quot;webpack-alias&quot;, { &quot;config&quot;: &quot;./build_config/webpack.common.js&quot; }],
				&quot;istanbul&quot;,
				&quot;dynamic-import-node&quot;
			]
		},
		&quot;production&quot;: {
			&quot;plugins&quot;: [
				&quot;transform-react-remove-prop-types&quot;,
				[&quot;recharts&quot;, null],
				[&quot;react-hot-loader/babel&quot;, null]
			]
		}
	}
}"><pre class="notranslate"><span class="pl-kos">{</span>
	<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">,</span> <span class="pl-s">"react-app"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
	<span class="pl-s">"env"</span>: <span class="pl-kos">{</span>
		<span class="pl-s">"development"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"react-hot-loader/babel"</span><span class="pl-kos">]</span>
		<span class="pl-kos">}</span><span class="pl-kos">,</span>
		<span class="pl-s">"test"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
				<span class="pl-kos">[</span><span class="pl-s">"webpack-alias"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"config"</span>: <span class="pl-s">"./build_config/webpack.common.js"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"istanbul"</span><span class="pl-kos">,</span>
				<span class="pl-s">"dynamic-import-node"</span>
			<span class="pl-kos">]</span>
		<span class="pl-kos">}</span><span class="pl-kos">,</span>
		<span class="pl-s">"production"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
				<span class="pl-s">"transform-react-remove-prop-types"</span><span class="pl-kos">,</span>
				<span class="pl-kos">[</span><span class="pl-s">"recharts"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-kos">[</span><span class="pl-s">"react-hot-loader/babel"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">]</span>
			<span class="pl-kos">]</span>
		<span class="pl-kos">}</span>
	<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">package.json devDependencies</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  &quot;devDependencies&quot;: {
    &quot;@babel/core&quot;: &quot;7.4.4&quot;,
    &quot;@babel/preset-env&quot;: &quot;^7.4.4&quot;,
    &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;,
    &quot;autoprefixer&quot;: &quot;^7.1.2&quot;,
    &quot;babel-eslint&quot;: &quot;^9.0.0&quot;,
    &quot;babel-loader&quot;: &quot;^8.0.5&quot;,
    &quot;babel-plugin-istanbul&quot;: &quot;^5.0.1&quot;,
    &quot;babel-plugin-recharts&quot;: &quot;^1.1.0&quot;,
    &quot;babel-plugin-transform-react-remove-prop-types&quot;: &quot;^0.4.6&quot;,
    &quot;babel-preset-react-app&quot;: &quot;^8.0.0&quot;,
    &quot;chai&quot;: &quot;^4.1.2&quot;,
    &quot;chai-as-promised&quot;: &quot;^7.1.1&quot;,
    &quot;copy-webpack-plugin&quot;: &quot;^5.0.3&quot;,
    &quot;copyfiles&quot;: &quot;^2.1.0&quot;,
    &quot;cross-env&quot;: &quot;^5.0.1&quot;,
    &quot;css-loader&quot;: &quot;^2.1.1&quot;,
    &quot;dotenv&quot;: &quot;^8.0.0&quot;,
    &quot;enzyme&quot;: &quot;^3.8.0&quot;,
    &quot;enzyme-adapter-react-16&quot;: &quot;^1.6.0&quot;,
    &quot;eslint&quot;: &quot;^5.15.3&quot;,
    &quot;eslint-config-airbnb&quot;: &quot;^17.1.0&quot;,
    &quot;eslint-config-prettier&quot;: &quot;^3.1.0&quot;,
    &quot;eslint-import-resolver-webpack&quot;: &quot;^0.10.1&quot;,
    &quot;eslint-loader&quot;: &quot;^2.1.1&quot;,
    &quot;eslint-plugin-import&quot;: &quot;^2.14.0&quot;,
    &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.1.1&quot;,
    &quot;eslint-plugin-prettier&quot;: &quot;^2.6.2&quot;,
    &quot;eslint-plugin-react&quot;: &quot;^7.11.0&quot;,
    &quot;eslint-plugin-react-hooks&quot;: &quot;^1.0.1&quot;,
    &quot;eslint-plugin-testcafe&quot;: &quot;^0.2.1&quot;,
    &quot;extract-text-webpack-plugin&quot;: &quot;^4.0.0-alpha.0&quot;,
    &quot;file-loader&quot;: &quot;^3.0.1&quot;,
    &quot;html-webpack-plugin&quot;: &quot;^3.2.0&quot;,
    &quot;jsdom&quot;: &quot;9.0.0&quot;,
    &quot;mocha&quot;: &quot;^5.2.0&quot;,
    &quot;mocha-duplicate-reporter&quot;: &quot;^0.2.1&quot;,
    &quot;mocha-jenkins-reporter&quot;: &quot;^0.4.0&quot;,
    &quot;mocha-multi&quot;: &quot;^0.11.0&quot;,
    &quot;mocha-sonar-generic-test-coverage&quot;: &quot;0.0.3&quot;,
    &quot;node-sass&quot;: &quot;^4.9.3&quot;,
    &quot;null-loader&quot;: &quot;^1.0.0&quot;,
    &quot;nyc&quot;: &quot;^13.0.1&quot;,
    &quot;postcss-loader&quot;: &quot;^2.0.6&quot;,
    &quot;preload-webpack-plugin&quot;: &quot;^2.3.0&quot;,
    &quot;process-finder&quot;: &quot;1.0.0&quot;,
    &quot;react-hot-loader&quot;: &quot;^4.8.4&quot;,
    &quot;redux-mock-store&quot;: &quot;^1.2.2&quot;,
    &quot;retire&quot;: &quot;^2.0.2&quot;,
    &quot;rimraf&quot;: &quot;^2.5.4&quot;,
    &quot;sass-loader&quot;: &quot;^6.0.6&quot;,
    &quot;script-ext-html-webpack-plugin&quot;: &quot;^2.1.3&quot;,
    &quot;semver&quot;: &quot;^5.3.0&quot;,
    &quot;simple-mock&quot;: &quot;^0.7.3&quot;,
    &quot;sinon&quot;: &quot;^7.2.2&quot;,
    &quot;style-loader&quot;: &quot;^0.20.2&quot;,
    &quot;stylelint&quot;: &quot;^9.10.1&quot;,
    &quot;stylelint-config-standard&quot;: &quot;^18.0.0&quot;,
    &quot;testcafe&quot;: &quot;^1.0.0&quot;,
    &quot;tree-kill&quot;: &quot;1.2.0&quot;,
    &quot;url-join&quot;: &quot;^4.0.0&quot;,
    &quot;url-loader&quot;: &quot;^1.1.2&quot;,
    &quot;weakmap-polyfill&quot;: &quot;^2.0.0&quot;,
    &quot;webpack&quot;: &quot;^4.30.0&quot;,
    &quot;webpack-bundle-analyzer&quot;: &quot;^3.3.2&quot;,
    &quot;webpack-cli&quot;: &quot;^3.3.1&quot;,
    &quot;webpack-dev-middleware&quot;: &quot;^3.6.2&quot;,
    &quot;webpack-dev-server&quot;: &quot;^3.3.1&quot;,
    &quot;webpack-merge&quot;: &quot;^4.2.1&quot;
  },"><pre class="notranslate"><code class="notranslate">  "devDependencies": {
    "@babel/core": "7.4.4",
    "@babel/preset-env": "^7.4.4",
    "@babel/preset-react": "^7.0.0",
    "autoprefixer": "^7.1.2",
    "babel-eslint": "^9.0.0",
    "babel-loader": "^8.0.5",
    "babel-plugin-istanbul": "^5.0.1",
    "babel-plugin-recharts": "^1.1.0",
    "babel-plugin-transform-react-remove-prop-types": "^0.4.6",
    "babel-preset-react-app": "^8.0.0",
    "chai": "^4.1.2",
    "chai-as-promised": "^7.1.1",
    "copy-webpack-plugin": "^5.0.3",
    "copyfiles": "^2.1.0",
    "cross-env": "^5.0.1",
    "css-loader": "^2.1.1",
    "dotenv": "^8.0.0",
    "enzyme": "^3.8.0",
    "enzyme-adapter-react-16": "^1.6.0",
    "eslint": "^5.15.3",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^3.1.0",
    "eslint-import-resolver-webpack": "^0.10.1",
    "eslint-loader": "^2.1.1",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jsx-a11y": "^6.1.1",
    "eslint-plugin-prettier": "^2.6.2",
    "eslint-plugin-react": "^7.11.0",
    "eslint-plugin-react-hooks": "^1.0.1",
    "eslint-plugin-testcafe": "^0.2.1",
    "extract-text-webpack-plugin": "^4.0.0-alpha.0",
    "file-loader": "^3.0.1",
    "html-webpack-plugin": "^3.2.0",
    "jsdom": "9.0.0",
    "mocha": "^5.2.0",
    "mocha-duplicate-reporter": "^0.2.1",
    "mocha-jenkins-reporter": "^0.4.0",
    "mocha-multi": "^0.11.0",
    "mocha-sonar-generic-test-coverage": "0.0.3",
    "node-sass": "^4.9.3",
    "null-loader": "^1.0.0",
    "nyc": "^13.0.1",
    "postcss-loader": "^2.0.6",
    "preload-webpack-plugin": "^2.3.0",
    "process-finder": "1.0.0",
    "react-hot-loader": "^4.8.4",
    "redux-mock-store": "^1.2.2",
    "retire": "^2.0.2",
    "rimraf": "^2.5.4",
    "sass-loader": "^6.0.6",
    "script-ext-html-webpack-plugin": "^2.1.3",
    "semver": "^5.3.0",
    "simple-mock": "^0.7.3",
    "sinon": "^7.2.2",
    "style-loader": "^0.20.2",
    "stylelint": "^9.10.1",
    "stylelint-config-standard": "^18.0.0",
    "testcafe": "^1.0.0",
    "tree-kill": "1.2.0",
    "url-join": "^4.0.0",
    "url-loader": "^1.1.2",
    "weakmap-polyfill": "^2.0.0",
    "webpack": "^4.30.0",
    "webpack-bundle-analyzer": "^3.3.2",
    "webpack-cli": "^3.3.1",
    "webpack-dev-middleware": "^3.6.2",
    "webpack-dev-server": "^3.3.1",
    "webpack-merge": "^4.2.1"
  },
</code></pre></div>
<p dir="auto">cli commands:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    &quot;prebuild&quot;: &quot;rm -rf dist&quot;,
    &quot;all&quot;: &quot;npm run build &amp;&amp; npm run lint &amp;&amp; npm run test&quot;,
    &quot;build&quot;: &quot;npm run build:dist&quot;,
    &quot;build:copy&quot;: &quot;copyfiles -f ./public/favicon.ico ./dist &amp;&amp; copyfiles -f ./public/authzconfiguration.tpl.js ./dist&quot;,
    &quot;build:dist&quot;: &quot;npm run build:copy &amp;&amp; cross-env NODE_ENV=production webpack -p --env=prod --progress --colors&quot;,
&quot;start&quot;: &quot;webpack-dev-server --progress --colors --env=dev&quot;,"><pre class="notranslate"><code class="notranslate">    "prebuild": "rm -rf dist",
    "all": "npm run build &amp;&amp; npm run lint &amp;&amp; npm run test",
    "build": "npm run build:dist",
    "build:copy": "copyfiles -f ./public/favicon.ico ./dist &amp;&amp; copyfiles -f ./public/authzconfiguration.tpl.js ./dist",
    "build:dist": "npm run build:copy &amp;&amp; cross-env NODE_ENV=production webpack -p --env=prod --progress --colors",
"start": "webpack-dev-server --progress --colors --env=dev",
</code></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.0.0</li>
<li>Node/npm version: Node v10.15.0 - npm 6.7.0:</li>
<li>OS: OSX 10.14.3</li>
<li>Monorepo: no</li>
<li>How you are using Babel: loader/webpack</li>
</ul>
<p dir="auto"><strong>Possible Solution</strong><br>
I have looked at my dependencies, and I have several packages that depend on babel v6.xx. This may relate to it, but I am not sure</p>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24981281/57176649-37b9d080-6e0f-11e9-8d6e-bc125798eff8.png"><img width="1233" alt="Screen Shot 2019-05-04 at 1 51 09 AM" src="https://user-images.githubusercontent.com/24981281/57176649-37b9d080-6e0f-11e9-8d6e-bc125798eff8.png" style="max-width: 100%;"></a></p>