Skip to content

Provide bundled JavaScript files. #140

@magic-akari

Description

@magic-akari

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions