Skip to content

feat(ast/estree): add phase field to ImportDeclaration in ESTree AST#11157

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast
May 19, 2025
Merged

feat(ast/estree): add phase field to ImportDeclaration in ESTree AST#11157
graphite-app[bot] merged 1 commit intomainfrom
05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 19, 2025

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.

@github-actions github-actions bot added A-ast Area - AST C-enhancement Category - New feature or request labels May 19, 2025
Copy link
Member Author

overlookmotel commented May 19, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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 13:06
@codspeed-hq
Copy link

codspeed-hq bot commented May 19, 2025

CodSpeed Instrumentation Performance Report

Merging #11157 will degrade performances by 11.86%

Comparing 05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast (1bc8d29) with main (d67c9e5)

Summary

❌ 1 regressions
✅ 37 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 2.7 ms 3.1 ms -11.86%

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label May 19, 2025
Copy link
Member

Boshen commented May 19, 2025

Merge activity

@overlookmotel overlookmotel changed the base branch from 05-19-docs_napi_update_docs_for_oxc-parser_ to graphite-base/11157 May 19, 2025 14:08
@overlookmotel overlookmotel force-pushed the graphite-base/11157 branch from afa2f60 to 9be80ed Compare May 19, 2025 14:12
@overlookmotel overlookmotel force-pushed the 05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast branch from d3bd0a8 to c585a25 Compare May 19, 2025 14:12
@overlookmotel overlookmotel changed the base branch from graphite-base/11157 to 05-19-refactor_ast_remove_dummy_comment May 19, 2025 14:12
@graphite-app graphite-app bot force-pushed the 05-19-refactor_ast_remove_dummy_comment branch from 9be80ed to e92bf1f Compare May 19, 2025 14:23
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@overlookmotel overlookmotel changed the base branch from 05-19-refactor_ast_remove_dummy_comment to graphite-base/11157 May 19, 2025 14:56
@overlookmotel overlookmotel force-pushed the 05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast branch from c585a25 to 5ef3893 Compare May 19, 2025 14:56
@overlookmotel overlookmotel changed the base branch from graphite-base/11157 to main May 19, 2025 14:56
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label 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.
@graphite-app graphite-app bot force-pushed the 05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast branch from 5ef3893 to 1bc8d29 Compare May 19, 2025 15:13
@graphite-app graphite-app bot merged commit 1bc8d29 into main May 19, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@graphite-app graphite-app bot deleted the 05-19-feat_ast_estree_add_phase_field_to_importdeclaration_in_estree_ast branch May 19, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing phase: "defer" in ESTree AST

2 participants