Skip to content

Commit

Permalink
Add module field
Browse files Browse the repository at this point in the history
https://unpkg.com/@polymer/polymer@3.3.0?module fails to load saying that the package is not an ES module. Adding `module` field should allow it to load (see: https://github.com/mjackson/unpkg/blob/4bb6cf424a6f7e803fc98c13662ee4d04bfe4af2/modules/middleware/validateFilename.js#L7)
  • Loading branch information
rslawik committed Oct 4, 2019
1 parent f6ccc9d commit 9a4d4d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "3.3.0",
"description": "The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to write",
"main": "polymer-element.js",
"module": "polymer-element.js",
"directories": {
"doc": "docs",
"test": "test"
Expand Down

0 comments on commit 9a4d4d9

Please sign in to comment.