Is it possible to use Babel via CDN?

Asked

Viewed 39 times

0

I’m doing a project (App on JS + Cordova), and I came across a problem using let, const, arrow function and etc (Only works in more modern devices, such as, Android 6+ or IOS 10+).

So I was wondering if it’s possible to use the Babel via CDN, or otherwise, because, until then, I didn’t find much talking about using it, that way.

  • If you use Cordova you have a Node.js pipeline right? it would be better to join Babel there, to compile Javascript. Cordova certainly has something configurable for this.

  • @Sergio Would that be? https://github.com/kerrishotts/cordova-plugin-webpack-transpiler

  • Probably this one does. But there may be another(s) that use Babel directly, without the webpack. The webpack gives you more functionality if you need it in the future. This plugin seems unpopular yet.

  • You can probably also compile JS separately from Cordova and tell Cordova to fetch the compiled file.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.