es3ify | Browserify transform to convert ES5 syntax | Plugin library
kandi X-RAY | es3ify Summary
kandi X-RAY | es3ify Summary
Browserify transform to convert quote reserved words in property keys for compatibility with ES3 JavaScript engines like IE8. In addition, trailing commas in array and object literals are removed.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Visit Object .
- Transform a stream .
- Compile data .
- handle member expression
- Strip values from comma or comma .
- Visit property value .
- Runs the code .
- Writes data to the next chunk
es3ify Key Features
es3ify Examples and Code Snippets
Community Discussions
Trending Discussions on es3ify
QUESTION
I'm using Browserify to transpile my JS code to be sure the final code is compatible with most browsers, and all is working perfectly with Chrome and Firefox.
But I'm using a package (dot-prop
) that IE11 does not seem to like due to the name of some functions like get
in get(obj, path, value)
(https://github.com/sindresorhus/dot-prop/blob/master/index.js) and generate the classic error:
ANSWER
Answered 2017-Jun-21 at 23:08The issue was more subtle: as dot-prop
is a dependency stored in node_modules
by default it is ignored by Browserify hence not passed to Babel through Babelify for transpilation.
Until I find a clean way of asking Browerify to handle only this dependency I've found a simple workaround: pre-generating a transpiled version of the dependency.
I have a dedicated NPM script in my package.json
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install es3ify
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page