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 rollup-plugin-json #31

Closed
chrisdothtml opened this issue Jan 4, 2019 · 1 comment
Closed

Add rollup-plugin-json #31

chrisdothtml opened this issue Jan 4, 2019 · 1 comment

Comments

@chrisdothtml
Copy link

Currently, if you try to import a json file (e.g. package.json), you'll get an error:

SyntaxError: [...]/package.json: Unexpected token, expected ";" (2:8)
  1 | {
  2 |   "name": "foo-bar",
    |         ^

See this issue (old but still applies). tl;dr rollup doesn't parse json imports out of the box and you need rollup-plugin-json for it

@chrisdothtml
Copy link
Author

Closing in favor of #32

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

No branches or pull requests

1 participant