I'm using Babel with Browserify to transpile my JS code.
But I'm using a package (
dot-prop) that IE11 does not seem to like due to the name of some functions like
get(obj, path, value) (https://github.com/sindresorhus/dot-prop/blob/master/index.js) and it generates the classic error:
SCRIPT 1028 Expected identifier, string or number
Yet I'm using a whole bunch of transpilation tools:
browserify --extension=.jsx --transform [babelify --presets=es2015,stage-2,react --plugins=[babel-plugin-transform-es3-member-expression-literals,babel-plugin-transform-es3-property-literals]] --transform [es3ify] GUI/index.jsx --outfile dist/GUI/bundle.js
But as far as I understand the tools consider the code as valid, which it is for most browsers like Chrome and Firefox indeed.
Should Babel handle this case and transform the code?
If yes how to configure Babel?
If no do you know a third-party component that may fix it?
If no what would be the best way of fixing the code?
Thanks for any input.