Skip to content

Commit

Permalink
external babel parser
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 8, 2022
1 parent f6b5fba commit 353e109
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 125 deletions.
5 changes: 5 additions & 0 deletions packages/next/bundles/babel/bundle.js
Expand Up @@ -40,6 +40,10 @@ function generator() {
return require('@babel/generator')
}

function parser() {
return require('@babel/parser')
}

function eslintParser() {
return require('next/dist/compiled/babel-packages').eslintParser()
}
Expand Down Expand Up @@ -116,6 +120,7 @@ module.exports = {
generator,
traverse,
eslintParser,
parser,
pluginProposalClassProperties,
pluginProposalExportNamespaceFrom,
pluginProposalNumericSeparator,
Expand Down

0 comments on commit 353e109

Please sign in to comment.