Registry / devops / lasso-babel-transform

lasso-babel-transform

JSON →
library3.1.1jsnpmunverified

A Lasso.js transform that uses Babel to transpile ES6+ code to ES5 for browser bundles. The current stable version is 3.1.1 (supports Babel 7 and Lasso 2+). Release cadence is low; updates are infrequent but maintain compatibility with Lasso and Babel ecosystems. Key differentiators: integrates Babel transpilation directly into Lasso's build pipeline, respects .babelrc / .babelrc-browser per package, and allows global babelOptions override.

npm install lasso-babel-transform
INSTALL
IMPORT
SIG · LASSO-BABEL-TRANSF
L
lasso-babel-transform
devopsjavascriptv3.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

lasso-babel-transform
Configure via Lasso's require.transforms array as shown in README. No direct import.
None: this is a Lasso transform plugin, not a direct import module.
This package is used as a Lasso transform configuration string, not imported in user code.

Configures Lasso to transpile ES6+ JavaScript files using Babel via lasso-babel-transform with global babel options.

const lasso = require('lasso'); const path = require('path'); lasso.configure({ outputDir: path.join(__dirname, 'static'), require: { transforms: [ { transform: 'lasso-babel-transform', config: { extensions: ['.js', '.es6'], babelOptions: { presets: ['@babel/preset-env'] } } } ] } }); lasso.lassoPage({ name: 'myPage', dependencies: [ path.join(__dirname, 'myModule.js') ] });
Debug
Known issues
breakingVersion 3.x requires @babel/core (Babel 7). Using Babel 6 with 3.x will fail.
fix
Update to @babel/core or use lasso-babel-transform@1 for Babel 6.
affects: >=3.0.0
deprecatedOptions like 'babelOptions' override per-package .babelrc; this can cause unexpected overrides.
fix
Avoid setting babelOptions unless you intend global override; let .babelrc drive per-package config.
affects: all
gotchaIf no .babelrc, .babelrc-browser, or babel property found in package.json, no transpilation occurs silently.
fix
Ensure each package has a valid Babel configuration file or use global babelOptions.
affects: all
gotchaAll files with enabled extensions are transpiled; excluding files must be done via .babelrc 'exclude' pattern.
fix
Add 'exclude' array in Babel config to skip specific files/directories.
affects: all
Errors
Common errors & fixes
Error: Cannot find module '@babel/core'
@babel/core not installed or missing peer dependency.
fix
Run: npm install @babel/core
Error: Plugin/Preset 'env' is not a function
Using Babel 7 preset names with Babel 6 or vice versa.
fix
Use @babel/preset-env for Babel 7 or babel-preset-env for Babel 6.
Upgrade
Version history
3.1.1latest on npm
Audit
Dependencies
@babel/corerequiredPeer dependency: Babel transpilation engine required.
Agent activity
2 hits · last 30 days
node
2
Resources
lasso-babel-transform — npm install lasso-babel-transform · libregistry