Skip to content

Commit

Permalink
pre compile @babel/parser for eslint-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 27, 2022
1 parent ffbee25 commit 1791eee
Show file tree
Hide file tree
Showing 11 changed files with 113,119 additions and 113,119 deletions.
5 changes: 5 additions & 0 deletions packages/next/bundles/babel/bundle.js
Expand Up @@ -12,6 +12,10 @@ function core() {
return require('@babel/core')
}

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

function coreLibConfig() {
return require('@babel/core/lib/config')
}
Expand Down Expand Up @@ -108,6 +112,7 @@ module.exports = {
types,
codeFrame,
core,
parser,
coreLibConfig,
coreLibNormalizeFile,
coreLibNormalizeOpts,
Expand Down
1 change: 1 addition & 0 deletions packages/next/bundles/babel/packages/parser.js
@@ -0,0 +1 @@
module.exports = require('./bundle').parser()
184 changes: 92 additions & 92 deletions packages/next/compiled/babel-packages/packages-bundle.js

Large diffs are not rendered by default.

188 changes: 94 additions & 94 deletions packages/next/compiled/babel/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/next/compiled/babel/parser.js
@@ -0,0 +1 @@
module.exports = require('./bundle').parser()

0 comments on commit 1791eee

Please sign in to comment.