-
Notifications
You must be signed in to change notification settings - Fork 39
es compatibility #19
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
Comments
This will break TypeScript because there will be missing support for |
If you're using Webpack 2, you can use the |
@brandonroberts i use webpack 1 ... |
It still works with Webpack 1 if you're using TypeScript. Will you provide a reproduction in a gist or repo? |
@brandonroberts i wouldn't like to support an es version, i would prefer contribute to your... |
I would like to support your issue as well. My question is are you using TypeScript or not? |
no, i'm using javascript |
I haven't forgotten about your issue. Would it be sufficient to check the file extension in order to determine whether to add the type? If the extension is |
@brandonroberts looks a good idea |
I used |
@brandonroberts @atiertant Check my pull request. It adds ES support by query parameter. What you think? |
@vepasto couldn't we use @brandonroberts solution? |
@atiertant is it reliable enough since TS project can contain .js files? |
@vepasto what kind of .js file in a TS project can contain a loadChildren ? see microsoft/TypeScript#2302 |
@atiertant I'm not sure. To be honest I'm not very familiar with TS. It just sounded dangerous as we're making potentially backwards incompatible changes, and someone's build could possibly break. That's why I suggested the safe way. If you suggest it is safe, can you make a pull request? |
Is anyone going to make that pull request? @atiertant @brandonroberts |
@vepasto will not have time for now, @brandonroberts do you think #66 could be merged ? |
Support for plain JS files released as |
hi, could you replace src/utils.js Line 25
to be compatible with javascript? (don't know if it work with typescript)
The text was updated successfully, but these errors were encountered: