Skip to content

Commit

Permalink
move import-assertions to stage 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 12, 2020
1 parent a382602 commit 285f651
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/babel-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@babel/plugin-syntax-function-bind": "workspace:^7.10.4",
"@babel/plugin-syntax-function-sent": "workspace:^7.10.4",
"@babel/plugin-syntax-import-assertions": "workspace:^7.10.4",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-syntax-jsx": "workspace:^7.10.4",
"@babel/plugin-syntax-object-rest-spread": "^7.8.0",
"@babel/plugin-syntax-optional-catch-binding": "^7.8.0",
Expand Down
5 changes: 0 additions & 5 deletions packages/babel-standalone/src/preset-stage-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default (_: any, opts: Object = {}) => {
decoratorsBeforeExport,
pipelineProposal = "minimal",
recordAndTupleSyntax: recordAndTupleSyntax = "hash",
importAssertionsVersion = "september-2020",
} = opts;

return {
Expand All @@ -22,10 +21,6 @@ export default (_: any, opts: Object = {}) => {
],
plugins: [
babelPlugins.syntaxDecimal,
[
babelPlugins.syntaxImportAssertions,
{ version: importAssertionsVersion },
],
[babelPlugins.syntaxRecordAndTuple, { syntaxType: recordAndTupleSyntax }],
babelPlugins.proposalExportDefaultFrom,
[babelPlugins.proposalPipelineOperator, { proposal: pipelineProposal }],
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/preset-stage-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default (_: any, opts: Object) => {

return {
plugins: [
babelPlugins.syntaxImportAssertions,
babelPlugins.syntaxImportMeta,
babelPlugins.syntaxTopLevelAwait,
babelPlugins.proposalExportNamespaceFrom,
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,17 @@ __metadata:
languageName: unknown
linkType: soft

"@babel/plugin-syntax-import-meta@npm:^7.10.4":
version: 7.10.4
resolution: "@babel/plugin-syntax-import-meta@npm:7.10.4"
dependencies:
"@babel/helper-plugin-utils": ^7.10.4
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 685ee8f0b5b675952e02e1cabcde4d92638918a66ed515b2663e2e0b2246210a0768325423d5642f8687653a449357826675ccfcb712676be260a0ae13313828
languageName: node
linkType: hard

"@babel/plugin-syntax-json-strings@npm:^7.8.0":
version: 7.8.3
resolution: "@babel/plugin-syntax-json-strings@npm:7.8.3"
Expand Down Expand Up @@ -3171,6 +3182,7 @@ __metadata:
"@babel/plugin-syntax-function-bind": "workspace:^7.10.4"
"@babel/plugin-syntax-function-sent": "workspace:^7.10.4"
"@babel/plugin-syntax-import-assertions": "workspace:^7.10.4"
"@babel/plugin-syntax-import-meta": ^7.10.4
"@babel/plugin-syntax-jsx": "workspace:^7.10.4"
"@babel/plugin-syntax-object-rest-spread": ^7.8.0
"@babel/plugin-syntax-optional-catch-binding": ^7.8.0
Expand Down

0 comments on commit 285f651

Please sign in to comment.