ionic-pwa-toolkit icon indicating copy to clipboard operation
ionic-pwa-toolkit copied to clipboard

Can't import ES2015 modules

Open simonhaenisch opened this issue 7 years ago • 0 comments

Stencil version:

@stencil/[email protected]

I'm submitting a ... [x] bug report [ ] feature request [ ] support request

Current behavior: I installed sindresorhus/ky (version 0.3.0) into my project (which is an ES2015 module), then imported it. Now the build fails because of an object spread in the source:

[ ERROR ]  Plugin Error
           Unexpected token (19:19) in <project-dir>/node_modules/ky/index.js

Expected behavior: I want to be able to import ES2015 modules and get them transpiled to ES5 during build (I thought that was already possible with Stencil?).

Related code:

import ky from 'ky';

https://github.com/sindresorhus/ama/issues/446

simonhaenisch avatar Sep 19 '18 05:09 simonhaenisch