Support deferred import evaluation and source phase import syntax (#15487)
This commit is contained in:
1 parent
7e67e43061
commit
4b432496df
26 files changed
+615
-20
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user