Open baocang opened 7 years ago
Might be related to https://github.com/babel/babel/issues/340
BTW, why to use jQuery with Polymer? You might not need it at all, and take into account that in case of DOM manipulations, jQuery is not aware of Shadow DOM.
I'm trying to build a SaaS application wtihout jQuery, But some thirdpart library not sure. such as: http://www.highcharts.com, https://www.mobiscroll.com 😪.
@baocang Can you try each of those flags individually, to see which is causing the issue? My guess is it's just --js-compile
but it could also be --js-minify
.
We have a task to add the ability to whitelist files to be skipped for processing. If some popular files are currently broken we should bump up the priority.
@FredKSchott --bundle --js-minify.
@FredKSchott polymer build --js-minify
with no error in console. but the code \x20 has already translated to unicode char.
Okay, thanks for responding with that info. I'll look into this when I can prioritize the time.
Any news to this?
For the time being - submitted a PR to skip problematic js files here : https://github.com/Polymer/polymer-cli/pull/878.
Try it out by adding jQuery in the list of files to skip.
this is now fixed in my babel minfy patch: https://github.com/babel/minify/pull/733
I put a suggestion how to use while babel minify is not updated (and polymer cli also not) here: https://github.com/Polymer/polymer-cli/issues/886
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
Versions & Environment
Steps to Reproduce
polymer init polymer-2-application
<script src="jquery-3.2.0.js"></script>
#1.0.0-rc.7
bower update
polymer build --entrypoint index.html --shell src/app-shell/app-shell.html --bundle --js-compile --js-minify --html-minify
polymer serve build/default
Expected Results
No error is throw
Actual Results
Error is thrown