Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Feature Request: transpile only #28

Closed
ghost opened this issue Feb 13, 2018 · 3 comments
Closed

Feature Request: transpile only #28

ghost opened this issue Feb 13, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

Webpack 4 will have native support for JSON, with tree shaking.

Could we add an option to transpile JSON5 to JSON without the module.exports, so webpack 4 can use its native JSON loader?

@PatrickJS
Copy link
Collaborator

oh interesting. can you make a PR?

@G-Rath
Copy link

G-Rath commented Feb 15, 2019

Any update on this? Also, based on this issue, could I get some clarification on what this loader actually does currently, if it's not transpiling it?

I'd have expected the loader to transpile JSON5 into JSON, and just export that as an object, but that'd mean this issue is already implemented?

Does the loader write it to a file or something instead?

@alexander-akait
Copy link
Member

Done for webpack@5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants