Support deferred import evaluation and source phase import syntax (#15487)

This commit is contained in:
SUZUKI Sosuke authored and GitHub committed 2023-10-09 08:52:48 +09:00
1 parent 7e67e43061
commit 4b432496df
26 files changed
+615 -20

No files matched your search

+3
View File
@@ -26,6 +26,7 @@ const parseOptions = {
allowUndeclaredExports: true,
errorRecovery: true,
createParenthesizedExpressions: true,
createImportExpressions: true,
plugins: [
// When adding a plugin, please add a test in `tests/format/js/babel-plugins`,
// To remove plugins, remove it here and run `yarn test tests/format/js/babel-plugins` to verify
@@ -45,6 +46,8 @@ const parseOptions = {
"importReflection",
"explicitResourceManagement",
["importAttributes", { deprecatedAssertSyntax: true }],
"sourcePhaseImports",
"deferredImportEvaluation",
["optionalChainingAssign", { version: "2023-07" }],
],
tokens: true,