-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Missing file extension for named modules from "-m system --outFile foo.js" #6774
Comments
looks like a duplicate of #4595. |
@mhegazy I'm not sure this is really a duplicate. #4595 fixes an import issue for TypeScript, but the comments in https://github.com/systemjs/systemjs/issues/1065 indicate that, for systemjs to work with typescript outFile bundles, the .js extension must be present in the System.register call. My use case: Cheers. |
@geoff-mci I agree, this may not be a duplicate of #4595. I just ran into same issue as you and @danieleds with #1065 at SystemJS. The The good news is, I was able to trick I added |
@tuukkapuranen I do not recommend using I created an example repository. No file extensions required. It is very minimal but it works. https://github.com/aluanhaddad/typescript-systemjs-bundled-extensionless |
When bundling multiple files with -m system, the module names should include the file extension. Otherwise, they are loaded but not executed by systemjs.
Before:
After:
See here: systemjs/systemjs#1065
The text was updated successfully, but these errors were encountered: