Re: [w3c/webcomponents] JSON and CSS modules dynamic import (#835)

I agree with the above, this is expected given the semantics of modules. You also can't do `import { deep } from './resource.json';`. This is actually a little nicer with dynamic import because at least you can destruct there: `const { deep } = (await import('./resource.json')).default;`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/835#issuecomment-529719186

Received on Tuesday, 10 September 2019 00:38:14 UTC