mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
perf(v2): explicit babel/runtime version (#2111)
This commit is contained in:
parent
9b5266aa7e
commit
6db29897cf
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ export function getBabelLoader(isServer: boolean, babelOptions?: {}): Loader {
|
|||
{
|
||||
corejs: false,
|
||||
helpers: true,
|
||||
// By default, it assumes @babel/runtime@7.0.0. Since we use >7.0.0, better to
|
||||
// explicitly specify the version so that it can reuse the helper better
|
||||
// See https://github.com/babel/babel/issues/10261
|
||||
version: require('@babel/runtime/package.json').version,
|
||||
regenerator: true,
|
||||
useESModules: true,
|
||||
// Undocumented option that lets us encapsulate our runtime, ensuring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue