Skip to content

Allow imports ending with .js to resolve properly #227

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

Closed
wants to merge 1 commit into from

Conversation

gorner
Copy link

@gorner gorner commented Apr 10, 2025

As seems to be required for ember-cli-babel to support @babel/runtime v7.13+.

See also emberjs/ember-cli-babel#519

@gorner gorner marked this pull request as ready for review April 11, 2025 16:04
@ef4
Copy link
Contributor

ef4 commented May 20, 2025

See emberjs/ember-cli-babel#519 (comment)

This PR would have potentially far-reaching effects. We don't really want to change loader.js at all, it's stable legacy infrastructure that isn't used in the v2 app blueprint.

The motivating bug here is in ember-cli-babel, which shouldn't be emitting AMD where the import paths still include file extensions in the first place. But that bug also is probably WONTFIX because it's better to stop using the includeExternalHelpers feature entirely.

@gorner
Copy link
Author

gorner commented May 20, 2025

Closing per @ef4's comments, the solution described at emberjs/ember-cli-babel#442 (comment) seems to be the better option here.

@gorner gorner closed this May 20, 2025
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.

2 participants