Skip to content

Version 1.6.0 on NPM is not valid ES5 code #41

Closed
@adambro

Description

@adambro

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions