Registry / utility / babel-transpiler

babel-transpiler

JSON →
library0.7.0rbrubygemsunverified

Ruby Babel is a bridge to the JS Babel transpiler, allowing you to transpile JavaScript from Ruby.

gem install babel-transpiler
INSTALL
IMPORT
SIG · BABEL-TRANSPILER
B
babel-transpiler
utilityrubyv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Babel
require 'babel/transpiler'

Transpile ES6 JavaScript to ES5 using Babel

require 'babel/transpiler' code = "const x = () => 1;" transpiled = Babel::Transpiler.transform(code)["code"] puts transpiled
Debug
Known issues
gotchaRequires Node.js and the babel-core npm package to be installed.
fix
Ensure Node.js is installed and run 'npm install babel-core' in your project.
affects: >= 0.7.0
Upgrade
Version history
0.7.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Amazon
1
Resources
babel-transpiler — gem install babel-transpiler · libregistry