SyntaxError: missing = in const declaration (Firefox)
vishal-singhal opened this issue · 1 comments
vishal-singhal commented
Index.js line 28 , const used in iterator for loop , should be let or var. It breaks in old browser (Firefox 46.0.1) with following error https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Errors/Missing_initializer_in_const
sindresorhus commented
This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446
If you use Webpack, check out babel-engine-plugin
, which transpiles only the dependencies that needs to be transpiled.