Skip to content

Commit

Permalink
perf(v2): explicit babel/runtime version
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Dec 10, 2019
1 parent ba7c38c commit ae31935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docusaurus/src/webpack/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae31935

Please sign in to comment.