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
Using { bundle: true } or --bundle breaks application in older browsers because code from <script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script> is inlined to html which results runtime error.
It's because code in webcomponents-loader.js
// global for (1) existence means `WebComponentsReady` will file,// (2) WebComponents.ready == true means event has fired.window.WebComponents=window.WebComponents||{};varname='webcomponents-loader.js';// ...codeif(polyfills.length){varscript=document.querySelector('script[src*="'+name+'"]');// script = null// there is no such <script> tag because it has been inlined
The text was updated successfully, but these errors were encountered:
hinok
changed the title
After bundling application, webcomponents-loader.js is inlined to HTML
After bundling application, webcomponents-loader.js is inlined to HTML and application doesn't work in older browsers
Oct 4, 2017
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.
Description
Using
{ bundle: true }
or--bundle
breaks application in older browsers because code from<script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>
is inlined to html which results runtime error.It's because code in
webcomponents-loader.js
It's clear that this file shouldn't be inlined.
Versions & Environment
Steps to Reproduce
polymer init
polymer-2-application
or use this
polymer.json
then
http://127.0.0.1:8081
Expected Results
Hello __YOUR__APP__NAME!
should be visible.Actual Results
Blank page and in the console reported errors below
I've tried to use
excludes
forbundle
but still this file is always bundled (inlined) to HTML.polymer.json
Edit: Ahhhh, it seems that files in
excludes
should NOT have beginning slash...Probably related:
The text was updated successfully, but these errors were encountered: