Print.js: dist/print.js is bloated with eval()

Created on 20 Nov 2019  Â·  5Comments  Â·  Source: crabbly/Print.js

In 1.0.63, code in dist/print.js ( see from unpkg ) contains eval().

It seems some build settings of Webpack might be inaccurate for distribution build.

help wanted

Most helpful comment

Sorry for the delay guys. @natalan I thought I used the production flag. But maybe I messed this up.
I just merged your PR. Will run a few manual tests and try to publish a new version as soon as possible.

All 5 comments

Hey @maisumakun, this doesn't sound good. I'll take a look at it. Any ideas on how we can fix this?

@crabbly did you run npm run production for 1.063 or npm run dev? eval must be coming from the dev build

Anyway, I just submitted a PR here to set devtool to source-map in dev builds. #392

Sorry for the delay guys. @natalan I thought I used the production flag. But maybe I messed this up.
I just merged your PR. Will run a few manual tests and try to publish a new version as soon as possible.

Closing this since these changes were deployed to npm. Latest version is currently v1.1.0. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GuoSirius picture GuoSirius  Â·  8Comments

r3wt picture r3wt  Â·  8Comments

deysudip picture deysudip  Â·  4Comments

galcott picture galcott  Â·  7Comments

Orcinuss picture Orcinuss  Â·  8Comments