From 9a4d4d9a53f555c37b628bcc9b8e5d30adcf7de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20S=C5=82awik?= Date: Fri, 4 Oct 2019 23:12:26 +0100 Subject: [PATCH] Add module field 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) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a30c075a50..32f5ecfa96 100644 --- a/package.json +++ b/package.json @@ -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"