Wednesday, 25 September 2019

Issue with JAWR and already minified JS "+ ++" getting further minified into "+++"

I'm embedding a react app into another webpage where they use jawr to include all their JS files.

I found this node_modules/core-js/modules/_meta.js

var setMeta = function (it) {
  setDesc(it, META, { value: {
    i: 'O' + ++id, // object ID
    w: {}          // weak collections IDs
  } });
};

when jawr is running it's compressing that + ++ into +++ and throwing an error:

SyntaxError: invalid increment operand

what's the best way around this? Obviously don't want to modify my node_modules stuff. Not sure if jawr has an option to not further compress particular files? I dont know much about jawr in general. Any help is welcome.



from Issue with JAWR and already minified JS "+ ++" getting further minified into "+++"

No comments:

Post a Comment