0

My web app does not work on ie11 because of ipfs-api.

This module uses ES6 and has not been transpiled.
Some dependencies are not transpiled, too.
And some dependencies of those dependencies are not transpiled, and so on...

How can I transpile ipfs-api and related modules?

cancue
  • 384
  • 3
  • 18

1 Answers1

0

I think the simplest way is to use babel-register here.

Just add something like this at the start of your entrypoint:

require("babel-register")({
  only: /node_modules\/package-name/
});

Keep in mind it would bring the whole babel runtime at the start of application, which can increase application's start up time.

eldarg
  • 308
  • 2
  • 7