Skip to content

feat: add phase field to ImportDeclaration#30

Merged
overlookmotel merged 2 commits intomainfrom
05-19-feat_add_phase_field_to_importdeclaration_
May 19, 2025
Merged

feat: add phase field to ImportDeclaration#30
overlookmotel merged 2 commits intomainfrom
05-19-feat_add_phase_field_to_importdeclaration_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 19, 2025

Add a field phase to ImportDeclaration to support oxc-project/oxc#10978.

This field is always null because neither Acorn or TS-ESLint parser supports this syntax.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review May 19, 2025 12:41
@overlookmotel overlookmotel merged commit 2096e67 into main May 19, 2025
2 checks passed
@overlookmotel overlookmotel deleted the 05-19-feat_add_phase_field_to_importdeclaration_ branch May 19, 2025 12:41
graphite-app bot pushed a commit to oxc-project/oxc that referenced this pull request May 19, 2025
…AST (#11157)

Fixes #10978. Add `phase` property to `ImportDeclaration` in ESTree and TS-ESTree ASTs.

`ImportExpression` is not covered by this PR. That's more tricky as TS-ESLint already supports `import.defer(...)` and `import.source(...)`, but does not align with ESTree - it outputs a `MetaProperty` instead.

`acorn-test262` submodule is bumped to include oxc-project/estree-conformance#30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant