-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Description
Description
The browser does not support the bare import.
It is impossible to use lit-element without toolchain (webpack or rollup) now
as lit-element use bare import.
https://github.com/Polymer/lit-element/blob/2433ce376521aa8ab5272aa9c12a49ee74ac8c4e/src/lit-element.ts#L14-L23
or the browser will throw the error:
TypeError: Module specifier does not start with "/", "./", or "../".
It is better to provide different versions of bundled files. Such as UMD, CommonJS and ES Module.
There is an example in Vue project.
Browsers Affected
- Chrome
- Firefox
- Edge
- Safari 11
- Safari 10
- IE 11
Versions
- lit-element: v0.5.2
- webcomponents: v2.0.2
riovir, barakedry, ysh35, jfbrennan, abraham and 15 morejfbrennan, rockerest, thescientist13, davemooreuws and ChriD