Skip to content

chore(cli): Add .js to relative imports (ESM prep) #12020

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Apr 8, 2025

When we move to building for ESM we need to explicitly specify the .js file extension. For our CJS setup it's optional, but it doesn't hurt adding it.

This is picking back up work that @jtoar started in #10409

@Tobbe Tobbe added the release:chore This PR is a chore (means nothing for users) label Apr 8, 2025
@Tobbe Tobbe added this to the chore milestone Apr 8, 2025
@Tobbe Tobbe force-pushed the tobbe-cli-import-js-ext branch from e655df8 to 30187a5 Compare April 8, 2025 18:23
@Tobbe Tobbe force-pushed the tobbe-cli-import-js-ext branch from c6ee6b0 to 7351e32 Compare April 8, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant