We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atm, building an element in ES6 classes requires a transpiler like babel to work x-browser. That workflow looks something like this:
The full command is below. BabelJS adds "use strict"; to the top of the transpiled output:
"use strict";
Unfortunately, this means JS errors, as parts of core 'use strict' and other parts do not.
Fix Easiest fix is to get ride of this global, make it window.Polymer = {.... I've confirmed changing this one line in the transpiled output works!
window.Polymer = {...
vulcanize polymer.html --inline-script | crisper -h polymer.v.html -j polymer.v.b.js; babel --compact false polymer.v.b.js -o polymer.v.b.js
The text was updated successfully, but these errors were encountered:
specifically create Polymer object on window to satisfy strict mo…
Polymer
window
a75133d
…de (fixes #2363)
Fixed as of a75133d?
Sorry, something went wrong.
register
218f530
…de (fixes Polymer#2363)
sjmiles
Successfully merging a pull request may close this issue.
Atm, building an element in ES6 classes requires a transpiler like babel to work x-browser. That workflow looks something like this:
The full command is below. BabelJS adds
"use strict";
to the top of the transpiled output:Unfortunately, this means JS errors, as parts of core 'use strict' and other parts do not.
Fix
Easiest fix is to get ride of this global, make it
window.Polymer = {...
. I've confirmed changing this one line in the transpiled output works!vulcanize polymer.html --inline-script | crisper -h polymer.v.html -j polymer.v.b.js; babel --compact false polymer.v.b.js -o polymer.v.b.js
The text was updated successfully, but these errors were encountered: