polymer-bundler | Moved to Polymer/tools monorepo | Web Framework library
kandi X-RAY | polymer-bundler Summary
kandi X-RAY | polymer-bundler Summary
Moved to Polymer/tools monorepo
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of polymer-bundler
polymer-bundler Key Features
polymer-bundler Examples and Code Snippets
Community Discussions
Trending Discussions on polymer-bundler
QUESTION
Using polymer-cli
1.7.7, bundling a Polymer 3 app for esm, es6 and es5 support does not output node_modules
. As a consequence, dependencies such as @webcomponents/webcomponentsjs
are not found when the bundles are served with prpl-server
.
Here is a small example for reproduction:
https://github.com/lpellegr/polymer-bundler-bundle-issue
This example is based on the original polymer 3 app template generated by polymer-cli init
. The configuration file polymer.json
has been edited to generate esm, es6 and es5 bundles as suggested on the following resource:
https://polymer.github.io/pwa-starter-kit/building-and-deploying/
If you run polymer build
, the output directory does not contain include a node_modules
directory and thus not the JavaScript file for webcomponentjs:
ANSWER
Answered 2018-Jul-20 at 20:34Your polymer.json
file doesn't include the information that the Polymer CLI uses to decide what to include in the build.
Adding the missing lines as per the PWA Starter Kit makes it work, for example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install polymer-bundler
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page