-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Reopen / comment on #5043 (Add .json extension is missing from webpack resolve.extensions) #13576
Comments
Don't worry about the new issue. It's actually preferred to open a new issue when there is still a concern regarding a long closed issue (in this case almost 2 years). As to an explanation, this issue is not truly an Angular CLI specific issue. Treating JSON as a JavaScript module is specific to the Node.js platform and is also non-standard from the viewpoint of ES modules existing in ES2015+. If a package is to be considered cross-platform (i.e., supporting Node.js and browsers) then it should ideally not assume specific bundler configurations or bundler capabilities to workaround Node.js specific behavior. By making a small change to line 50 (and 70-71) of the build script in the package, JSON can be completely eliminated from the situation. This not only avoids the entire file extension concern but also provides a path to eventual ES module compliant code.
|
Closing following the suggestions mentioned above. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
See #5043
tl;dr Please reopen that issue (and close this one)
Opening a new issue here because
So... Sorry? I don't want to be an ass by intentionally opening a duplicate issue, but it'd be nice to see some movement on this, or at least an explanation for not moving on it.
The text was updated successfully, but these errors were encountered: