Registry / web-framework / babel-preset-startupjs

babel-preset-startupjs

JSON →
library0.61.3jsnpmunverified

Babel preset for compiling StartupJS applications across server, web, and native platforms. Current stable version: 0.61.3. Low release cadence (minor updates irregularly). Integrates nicessary Babel plugins for CSS-in-JS (cssxjs) and platform-specific transpilation. Differentiator: single preset for all StartupJS targets vs manually configuring Babel for each environment.

npm install babel-preset-startupjs
INSTALL
IMPORT
SIG · BABEL-PRESET-START
B
babel-preset-startupjs
web-frameworkjavascriptv0.61.3
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.

default
module.exports = require('babel-preset-startupjs')
import preset from 'babel-preset-startupjs'
CommonJS module, not ESM; use require in .babelrc or babel.config.js
default
{ "presets": ["babel-preset-startupjs"] }
{ "presets": ["startupjs"] }
Full package name required in Babel config; shorthand not supported
default
presets: ['babel-preset-startupjs']
presets: ['startupjs']
Same as JSON config; use exact package name

Basic setup for StartupJS Babel compilation. Requires manual installation of peer dependency cssxjs.

// Install peer dependency first npm install cssxjs // In babel.config.js module.exports = { presets: ['babel-preset-startupjs'] };
Debug
Known issues
gotchaMissing peer dependency cssxjs. npm does not auto-install peer dependencies for Babel presets.
fix
Run: npm install cssxjs
affects: >=0.0.0
gotchaUsing ES module import syntax (import) to load this preset causes errors because it's a CommonJS module.
fix
Use require() in your Babel config file (.babelrc or babel.config.js).
affects: >=0.0.0
gotchaPreset name must be 'babel-preset-startupjs', not 'startupjs'. Babel will fail if you omit 'babel-preset-' prefix.
fix
Use full package name in presets array.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'cssxjs'
Peer dependency cssxjs not installed.
fix
Run: npm install cssxjs
Error: Requires Babel "^7.0.0-0", but was loaded with "6.x".
Using Babel 6 instead of Babel 7.
fix
Upgrade Babel core and CLI to version 7.
Upgrade
Version history
0.61.3latest on npm
Audit
Dependencies
cssxjsrequiredRequired for CSS-in-JS transformation in StartupJS components
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
babel-preset-startupjs — npm install babel-preset-startupjs · libregistry