Registry / devops / atom-babel6-transpiler

atom-babel6-transpiler

JSON →
library1.2.0jsnpmunverified

Atom package transpiler that processes files with Babel 6. Version 1.2.0 is the latest. Designed for use within Atom's package transpiler system. Provides integration with Babel 6, including support for .babelrc configuration, presets, and plugins. Features include automatic BABEL_ENV setting for development/production, configurable cache key files, and inline source maps. Key differentiator: official Atom package transpiler for Babel 6, part of the Atom ecosystem for package development.

npm install atom-babel6-transpiler
INSTALL
IMPORT
SIG · ATOM-BABEL6-TRANSP
A
atom-babel6-transpiler
devopsjavascriptv1.2.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.

default
No direct import; used via package.json atomTranspilers config
Not imported directly; configured as a transpiler in package.json

Installs the transpiler, configures package.json, installs Babel presets, and sets up Babel options.

npm install --save atom-babel6-transpiler # Then in package.json add: { "atomTranspilers": [ { "glob": "**/*.js", "transpiler": "atom-babel6-transpiler", "options": { "babel": { "presets": ["es2015", "react"], "babelrc": false }, "setBabelEnv": true } } ] } # Then install Babel presets: npm install --save babel-preset-es2015 babel-preset-react # Create .babelrc or use options.babel above
Debug
Known issues
deprecatedAtom's package transpiler system is deprecated; use Babel directly or another build tool.
fix
Migrate to using Babel standalone or a build system like webpack or gulp.
affects: >=1.0.0
gotchaIf babelrc is not set to false, Babel may use user's .babelrc from filesystem leading to unexpected behavior.
fix
Set "babelrc": false in options.babel.
affects: >=0.0.0
breakingAtom's transpiler architecture changed after this package was released; may not work with newer Atom versions.
fix
Check Atom version compatibility; consider alternative transpilation.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-core'
Babel 6 not installed as a dependency.
fix
Run: npm install --save babel-core
Error: Could not find preset 'es2015' relative to directory
Babel preset not installed or not configured correctly.
fix
Install preset: npm install --save babel-preset-es2015 and add to options.
Upgrade
Version history
1.2.0latest on npm
Audit
Dependencies
babel-corerequiredCore Babel 6 compiler required for transpilation
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
2
Resources
atom-babel6-transpiler — npm install atom-babel6-transpiler · libregistry