-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
tsloader needs to support System.import(Webpack supports it now) #129
Comments
TypeScript doesn't (yet) understand |
Closing this as a question, but feel free to reopen if you are experiencing an issue. |
@jbrantly It looks like both links have moved. Are they still available? |
Can't speak to the DefinitelyTyped stuff but the codesplitting example is still available at https://github.com/TypeStrong/ts-loader/tree/master/test/comparison-tests/codeSplitting |
@jbrantly is there a def we can pull in from DefinitelyTyped that defines require like that? Or is there a source for the require.d.ts you provide? |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/systemjs/index.d.ts seems like it has For now I've personally just used a function called
Then I use a chained loader after ts-loader like so:
This is all for webpack2, which supports the dynamic |
@jbrantly this seems really hacky to me. Why can't |
It can and will be once TypeScript supports it. See linked issue above. |
Currently Webpack 2 supports System.import now! However combing with typescript&tsloader, it will show "Cannot find name 'System'"..
The text was updated successfully, but these errors were encountered: