Skip to content
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

add JSON support #5

Merged
merged 1 commit into from
Mar 10, 2019
Merged

add JSON support #5

merged 1 commit into from
Mar 10, 2019

Conversation

FredKSchott
Copy link
Owner

Adds support for dependencies that import a JSON file as a module. This isn't supported yet in ES2019 syntax, but it's common enough in Node.js & NPM ecosystem that we need to support it.

@stramel
Copy link
Contributor

stramel commented Mar 2, 2019

Hmmm hasn't been a lot of activity on this until just recently. Looks like node is exploring it now.

WICG/webcomponents#770

How much non-standard web stuff should this be supporting?

@FredKSchott
Copy link
Owner Author

FredKSchott commented Mar 2, 2019

My dream would be to encourage the use of top-level dependencies that are modern and web-standard, but to forgive badly behaving / Node specific / non-standard transitive dependencies.

The other tricky bit is that since Webpack & Node allow it, and it's so damn convenient, it's already happening quite a bit even in ESM packages on npm today.

I could also see this being an opt-in flag to start with.

@FredKSchott FredKSchott merged commit dcf7380 into master Mar 10, 2019
@FredKSchott FredKSchott deleted the add-json-plugin branch March 10, 2019 06:42
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