Closed SylRob closed 1 year ago
(for my work I still have to support IE11)
the culprit is is-blob
the imported script is not es5 compiled (just because it use an arrow function...)
module.exports = value => { if (typeof Blob === 'undefined') { return false; } return value instanceof Blob || Object.prototype.toString.call(value) === '[object Blob]'; };
a really simple fix would be to just create a isBlob function in the utils file
isBlob
there is an other fix, add is-blob into the exclude setting of babel-loader something like that :
is-blob
{ test: /\.js$/, exclude: [/node_modules\/(?!(is-blob)\/).*/], loader: 'babel-loader', },
(this seem to work for me so far) (I use webpack with babel)
I don't know if you care about IE11 support but this is just to let you guys know. if you don't want to support IE11 a nice compromise would be to put something in the Readme ?
sorry, just use a correct babel setup. This module only supports newer runtimes.
(for my work I still have to support IE11)
the culprit is is-blob
the imported script is not es5 compiled (just because it use an arrow function...)
a really simple fix would be to just create a
isBlob
function in the utils filethere is an other fix, add
is-blob
into the exclude setting of babel-loader something like that :(this seem to work for me so far) (I use webpack with babel)
I don't know if you care about IE11 support but this is just to let you guys know. if you don't want to support IE11 a nice compromise would be to put something in the Readme ?