babel-preset-startupjs

raw JSON →
0.61.3 verified Sat Apr 25 auth: no javascript

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.

error Error: Cannot find module 'cssxjs'
cause Peer dependency cssxjs not installed.
fix
Run: npm install cssxjs
error Error: Requires Babel "^7.0.0-0", but was loaded with "6.x".
cause Using Babel 6 instead of Babel 7.
fix
Upgrade Babel core and CLI to version 7.
gotcha Missing peer dependency cssxjs. npm does not auto-install peer dependencies for Babel presets.
fix Run: npm install cssxjs
gotcha Using 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).
gotcha Preset 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.
npm install babel-preset-startupjs
yarn add babel-preset-startupjs
pnpm add babel-preset-startupjs

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']
};