How to configure babelify to convert javascript files to IE 11 compatible

617 views Asked by At

I have a node js library which I would like to reuse within a browser IE 11.

I tried using the following command to convert the code to IE 11 compatible but looks like I am missing some configuration.

> browserify Module.js --standalone mymodule -o bundle.js -t [ babelify --presets [ @babel/preset-env ] ]

I can manually convert the javascript file using https://babeljs.io/repl. How can I automate this?

0

There are 0 answers