{"id":19341,"library":"babel-preset-startupjs","title":"babel-preset-startupjs","description":"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.","status":"active","version":"0.61.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install babel-preset-startupjs","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-startupjs","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-startupjs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for CSS-in-JS transformation in StartupJS components","package":"cssxjs","optional":false}],"imports":[{"note":"CommonJS module, not ESM; use require in .babelrc or babel.config.js","wrong":"import preset from 'babel-preset-startupjs'","symbol":"default","correct":"module.exports = require('babel-preset-startupjs')"},{"note":"Full package name required in Babel config; shorthand not supported","wrong":"{\n  \"presets\": [\"startupjs\"]\n}","symbol":"default","correct":"{\n  \"presets\": [\"babel-preset-startupjs\"]\n}"},{"note":"Same as JSON config; use exact package name","wrong":"presets: ['startupjs']","symbol":"default","correct":"presets: ['babel-preset-startupjs']"}],"quickstart":{"code":"// Install peer dependency first\nnpm install cssxjs\n\n// In babel.config.js\nmodule.exports = {\n  presets: ['babel-preset-startupjs']\n};","lang":"javascript","description":"Basic setup for StartupJS Babel compilation. Requires manual installation of peer dependency cssxjs."},"warnings":[{"fix":"Run: npm install cssxjs","message":"Missing peer dependency cssxjs. npm does not auto-install peer dependencies for Babel presets.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use require() in your Babel config file (.babelrc or babel.config.js).","message":"Using ES module import syntax (import) to load this preset causes errors because it's a CommonJS module.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use full package name in presets array.","message":"Preset name must be 'babel-preset-startupjs', not 'startupjs'. Babel will fail if you omit 'babel-preset-' prefix.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install cssxjs","cause":"Peer dependency cssxjs not installed.","error":"Error: Cannot find module 'cssxjs'"},{"fix":"Upgrade Babel core and CLI to version 7.","cause":"Using Babel 6 instead of Babel 7.","error":"Error: Requires Babel \"^7.0.0-0\", but was loaded with \"6.x\"."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}