Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Can't import ES2015 modules #86

Open
simonhaenisch opened this issue Sep 19, 2018 · 0 comments
Open

Can't import ES2015 modules #86

simonhaenisch opened this issue Sep 19, 2018 · 0 comments
Labels

Comments

@simonhaenisch
Copy link
Contributor

simonhaenisch commented Sep 19, 2018

Stencil version:

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';

sindresorhus/ama#446

@ionitron-bot ionitron-bot bot added the triage label Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant