Registry / devops / babel-preset-yoshi

babel-preset-yoshi

JSON →
library4.78.0jsnpmunverified

A Babel 7 preset (v4.78.0) for Yoshi, Wix's build toolchain. It includes transforms for modern JavaScript, React (with JSX), TypeScript, and other Babel plugins commonly needed in Wix projects. Release cadence follows yoshi's lifecycle. Key differentiators: opinionated defaults for Wix's monorepo and application conventions, integration with yoshi's module resolution, and minimal configuration overhead compared to manually assembling Babel presets. Supports JavaScript and TypeScript with automatic polyfilling for target environments.

npm install babel-preset-yoshi
INSTALL
IMPORT
SIG · BABEL-PRESET-YOSHI
B
babel-preset-yoshi
devopsjavascriptv4.78.0
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.

babel-preset-yoshi
const presets = ['babel-preset-yoshi']; // or .babelrc: { "presets": ["babel-preset-yoshi"] }
Error: Cannot find module 'babel-preset-yoshi' if not installed
Use string name in Babel config; no explicit import needed in JS code.

Shows how to configure babel-preset-yoshi in a Babel config file with options for target browsers, TypeScript, and React support.

// Install: npm install --save-dev babel-preset-yoshi @babel/core // .babelrc { "presets": [ ["babel-preset-yoshi", { "targets": { "browsers": ["last 2 versions"] }, "typescript": false, "react": true }] ] }
Debug
Known issues
breakingDropped support for Node.js < 12 in v4.0.0
fix
Upgrade Node.js to version 12 or higher.
affects: >=4.0.0
deprecatedThe 'modules' option is deprecated, use 'useESModules' instead.
fix
Replace { modules: false } with { useESModules: true } in preset options.
affects: >=3.0.0
gotchaWhen using with TypeScript, ensure 'typescript: true' is set, else .ts files will not be transformed.
fix
Set { typescript: true } in preset options if using TypeScript.
affects: >=4.0.0
gotchaAuto polyfill via @babel/preset-env may conflict if you also install @babel/polyfill manually.
fix
Remove explicit @babel/polyfill import if preset handles polyfilling via useBuiltIns.
affects: >=4.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-yoshi'
Package not installed or missing from node_modules.
fix
Run npm install babel-preset-yoshi --save-dev
Error: Multiple presets attempting to resolve React. Check your Babel config
Conflicting React presets (e.g., @babel/preset-react alongside babel-preset-yoshi with react: true).
fix
Set react: false in babel-preset-yoshi options if using another React preset, or remove the other preset.
Error: .babelrc: "Unknown option: targets"
targets option passed at top level instead of inside preset config.
fix
Wrap preset options: { "presets": [["babel-preset-yoshi", { "targets": {...} }]] }
Upgrade
Version history
4.78.0latest on npm
Audit
Dependencies
@babel/corerequiredPeer dependency required for Babel transformations
Agent activity
4 hits · last 30 days
node
4
Resources
babel-preset-yoshi — npm install babel-preset-yoshi · libregistry