You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PolymerJS as a library along with satellites like Vaadin Elements is used in portal environments and meant to be reused across multiple apps. Unfortunately modern ES6 imports (ESM) build could not use libs from library root on server or from CDN.
Proposing to add support of CDN distribution of polymer-cli built modules.
One of possible ways: polymer.json configuration parameter cdnRootUrl mapping for modules to URLs.
Which during the build would substitute references to modules from relative to build root path import "../../node_modules/@polymer/iron-ajax/iron-ajax.js";
to CDN URL import "https://somePolymerCDN.io/@polymer/[email protected]/iron-ajax.js";
The build/esm-unbundled/node_modules/* content would be changed to fit into CDN naming convention:
module folder suffixed with module revision
internal imports changed to match cdnRootUrl mapping
The project binaries would be copied to node_modules with current module revision so they would be deploy-able to and consumed from CDN.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The PolymerJS as a library along with satellites like Vaadin Elements is used in portal environments and meant to be reused across multiple apps. Unfortunately modern ES6 imports (ESM) build could not use libs from library root on server or from CDN.
Proposing to add support of CDN distribution of polymer-cli built modules.
One of possible ways:
polymer.json
configuration parameter cdnRootUrl mapping for modules to URLs.Which during the build would substitute references to modules from relative to build root path
import "../../node_modules/@polymer/iron-ajax/iron-ajax.js";
to CDN URL
import "https://somePolymerCDN.io/@polymer/[email protected]/iron-ajax.js";
The
build/esm-unbundled/node_modules/*
content would be changed to fit into CDN naming convention:cdnRootUrl
mappingThe project binaries would be copied to
node_modules
with current module revision so they would be deploy-able to and consumed from CDN.Related issues:
The text was updated successfully, but these errors were encountered: