Skip to content
This repository was archived by the owner on Aug 20, 2018. It is now read-only.

[v0.5.5] Update broke destructured import #53

Closed
ralphchristianeclipse opened this issue Jul 22, 2017 · 0 comments
Closed

[v0.5.5] Update broke destructured import #53

ralphchristianeclipse opened this issue Jul 22, 2017 · 0 comments

Comments

@ralphchristianeclipse
Copy link

What is Expected

import {author} from '../package.json'
console.log(author)

Doing it like this doesn't work

The default way it import specific parts of a json file works without warnings like this and it returns undefined after

What is Happening

I can import the whole json by not destructuring it

like this

import author from '../package.json'
console.log(author)
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

2 participants