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

Importing JSON files? #133

Open
beck opened this issue Mar 29, 2016 · 2 comments
Open

Importing JSON files? #133

beck opened this issue Mar 29, 2016 · 2 comments
Labels

Comments

@beck
Copy link

beck commented Mar 29, 2016

Led here from:
https://esdiscuss.org/topic/importing-json-files

Looking through the issues and discussion, unable to find a clear answer.

There is a ticket discussing Import non-JS code from the import declaration.

Considering the ubiquity of JSON, has there been any discussion on giving it native support?

@guybedford
Copy link

This sort of thing can be done through a custom format loading with the loader hooks.

In SystemJS the above method is provided via SystemJS.config({ meta: { 'app/*.json': { format: 'json' } } }).

Any spec inclusion is of course separate to the above, but just to mention this approach.

@caridy
Copy link
Contributor

caridy commented Mar 29, 2016

yeah. I suspect that the default loader implemented in each engine will support json, but we haven't get to define that just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants