Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1668: Node does not use the 'development' condition with default require() - this PR removes the development condition under require for @glimmer/syntax and dependents. #1669

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Nov 27, 2024

Tested locally with require('@glimmer/syntax') until doing so did not error with ERR_REQUIRE_ESM (node 22)

With the existing published version, the following are broken:

  • ember-template-recast
  • prettier
  • any cjs-node tooling wanting to parse templates

This is because node does not use the development condition when it resolves requires.

@NullVoxPopuli NullVoxPopuli changed the title Fix #1668: Node does not use the 'development' condition with default require() Fix #1668: Node does not use the 'development' condition with default require() - this PR removes the development condition under require Nov 27, 2024
@NullVoxPopuli NullVoxPopuli changed the title Fix #1668: Node does not use the 'development' condition with default require() - this PR removes the development condition under require Fix #1668: Node does not use the 'development' condition with default require() - this PR removes the development condition under require for @glimmer/syntax and dependents. Nov 27, 2024
@NullVoxPopuli NullVoxPopuli requested a review from wycats November 27, 2024 20:16
@NullVoxPopuli NullVoxPopuli merged commit 36e202a into main Nov 27, 2024
8 checks passed
@NullVoxPopuli NullVoxPopuli deleted the glimmer-syntax-needs-a-cjs-output branch November 27, 2024 23:19
@github-actions github-actions bot mentioned this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants