jsencrypt
jsencrypt copied to clipboard
3.2.0 release contains bogus jsencrypt/bin/jsencrypt.js
The code is evaluated by evals and the following header is printed at the top of the file :
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
@jeremiegirault hi there, What particular issues it brings? Just wondering... or that's just a bad Webpack configuration for prod build?
@travist hi, can you confirm that you used correct production mode to build final files before pushing to NPM? Thx
It's a bad webpack configuration on your side that i'm reporting. I'm not pushing this package to NPM. Look at the code generated: https://github.com/travist/jsencrypt/blob/master/bin/jsencrypt.js#L29
there is es6 syntax in eval.