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

Support JSON files and create dummy wrapper module for other non-JS extensions #176

Merged
merged 3 commits into from
Nov 20, 2017

Conversation

zamotany
Copy link
Contributor

Fixes #159

try {
this.exports = JSON.parse(code);
} catch (error) {
throw new Error(`${error.message} (${filename})`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to be super nice, we can use https://github.com/zaach/jsonlint somewhere in the future.

@codecov
Copy link

codecov bot commented Nov 20, 2017

Codecov Report

Merging #176 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #176      +/-   ##
==========================================
+ Coverage   97.57%   97.61%   +0.04%     
==========================================
  Files          19       19              
  Lines         413      420       +7     
  Branches       86       88       +2     
==========================================
+ Hits          403      410       +7     
  Misses         10       10
Impacted Files Coverage Δ
src/babel/preval-extract/resolveSource.js 100% <ø> (ø) ⬆️
src/babel/lib/moduleSystem.js 98.68% <100%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b3a44b...446b252. Read the comment docs.

@zamotany zamotany merged commit b64e9b4 into master Nov 20, 2017
@zamotany zamotany deleted the support-json-and-other-ext branch November 20, 2017 14:56
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.

3 participants