Closed
Description
AFAIR the public npmjs.com repository requires packages to be valid ES5 code. Apparently serialize-javascript
is not ES5 since 1.6.0 version. Steps to reproduce:
npm i serialize-javascript@1.5.0
npm i es-check --save-dev
./node_modules/.bin/es-check es5 'node_modules/serialize-javascript/*.js'
For version 1.5.0 the above does not complain at all.
My specific case was that UglifyJs babel plugin complains about not being able to compile JS code during build process once serialize-javascript
got upgraded to 1.6.0 version.
Metadata
Metadata
Assignees
Labels
No labels