<p dir="auto">@babel/standalone update to 7.13.2 version will get this error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16069074/108811851-fe0c1800-75e8-11eb-8ffc-d80411de57b0.png"><img src="https://user-images.githubusercontent.com/16069074/108811851-fe0c1800-75e8-11eb-8ffc-d80411de57b0.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Simply including <code class="notranslate">babel/standalone</code> results in an error <code class="notranslate">Module not found: Error: Can't resolve 'module' in 'project/node_modules/@babel/standalone'</code></p>
<p dir="auto">Repo to reproduce: <a href="https://github.com/matyasf/babel-standalone-bug">https://github.com/matyasf/babel-standalone-bug</a></p>
<p dir="auto"><strong>Input Code</strong></p>
<p dir="auto">clone the repo, run <code class="notranslate">yarn</code> and then <code class="notranslate">yarn run bundle</code> The code that is causing error during compilation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { transform } from '@babel/standalone'
const tt = transform"><pre class="notranslate"><code class="notranslate">import { transform } from '@babel/standalone'
const tt = transform
</code></pre></div>
<p dir="auto">The error is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./node_modules/@babel/standalone/babel.js 92843:15-32
Module not found: Error: Can't resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
  Parsed request is a module
  using description file: /Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
..."><pre class="notranslate"><code class="notranslate">ERROR in ./node_modules/@babel/standalone/babel.js 92843:15-32
Module not found: Error: Can't resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
  Parsed request is a module
  using description file: /Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
...
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">no error</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">babel.config.js</code>: none</li>
</ul>
<p dir="auto">Webpack.config.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path')
const outputPath = path.resolve(__dirname, '__build__')
console.info(`Building documentation`)

module.exports = {
  mode: &quot;development&quot;,
  module: {
    rules: [
      {
        test: /\.m?js$/,
        exclude: [/node_modules/, /\/lib\//, /\/es\//, /\.examples\.js$/],
        use: [
          {
            loader: 'babel-loader'
          }
        ]
      }
    ]
  },
  entry: {
    globals: './globals.js'
  },
  output: {
    path: outputPath,
    filename: '[name].js'
  }
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">outputPath</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'__build__'</span><span class="pl-kos">)</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">`Building documentation`</span><span class="pl-kos">)</span>

<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
  <span class="pl-c1">mode</span>: <span class="pl-s">"development"</span><span class="pl-kos">,</span>
  <span class="pl-c1">module</span>: <span class="pl-kos">{</span>
    <span class="pl-c1">rules</span>: <span class="pl-kos">[</span>
      <span class="pl-kos">{</span>
        <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>m?js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
        <span class="pl-c1">exclude</span>: <span class="pl-kos">[</span><span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\/</span>lib<span class="pl-cce">\/</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\/</span>es<span class="pl-cce">\/</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>examples<span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">]</span><span class="pl-kos">,</span>
        <span class="pl-c1">use</span>: <span class="pl-kos">[</span>
          <span class="pl-kos">{</span>
            <span class="pl-c1">loader</span>: <span class="pl-s">'babel-loader'</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><span class="pl-kos">,</span>
  <span class="pl-c1">entry</span>: <span class="pl-kos">{</span>
    <span class="pl-c1">globals</span>: <span class="pl-s">'./globals.js'</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-c1">path</span>: <span class="pl-s1">outputPath</span><span class="pl-kos">,</span>
    <span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  System:
    OS: macOS 10.15.7
  Binaries:
    Node: 15.2.1 - ~/.nvm/versions/node/v15.2.1/bin/node
    Yarn: 1.22.10 - ~/CODE/instructure-ui/node_modules/.bin/yarn
    npm: 7.5.3 - ~/.nvm/versions/node/v15.2.1/bin/npm
  npmPackages:
    @babel/core: ^7.13.1 =&gt; 7.13.1 
    @babel/standalone: ^7.13.7 =&gt; 7.13.7 
    babel-loader: ^8.2.2 =&gt; 8.2.2 
    webpack: ^5.24.2 =&gt; 5.24.2 "><pre class="notranslate"><code class="notranslate">  System:
    OS: macOS 10.15.7
  Binaries:
    Node: 15.2.1 - ~/.nvm/versions/node/v15.2.1/bin/node
    Yarn: 1.22.10 - ~/CODE/instructure-ui/node_modules/.bin/yarn
    npm: 7.5.3 - ~/.nvm/versions/node/v15.2.1/bin/npm
  npmPackages:
    @babel/core: ^7.13.1 =&gt; 7.13.1 
    @babel/standalone: ^7.13.7 =&gt; 7.13.7 
    babel-loader: ^8.2.2 =&gt; 8.2.2 
    webpack: ^5.24.2 =&gt; 5.24.2 
</code></pre></div>
<p dir="auto"><strong>Additional context</strong></p>