Open 256dpi opened 6 years ago
Did you see https://github.com/mathiasbynens/jsesc#support? Is using jsesc@1.3.0 not an option for you?
I saw the notice. I also do not use the library anymore myself. Just wanted to help going forward with using es6 while still supporting es5 environments.
I had some troubles using this library in a project using
parcel
. The issue was that thejsesc
code base uses some es6 syntax, but does not transpile the code. Most tools assume that code linked from themain
field inpackage.json
point to source code that uses only es5 syntax. There are attempts to use other fields to point to es6 modules. However, for that to work, the code base first needs to be fully migrated to es6 syntax and used es modules e.g.import
andexport
syntax.This PR fixes the issue temporarily by transpiling the current code base to es5 using
babel
.