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-yoshiVerified import paths — ran on the pinned version, not inferred.
Shows how to configure babel-preset-yoshi in a Babel config file with options for target browsers, TypeScript, and React support.
Upgrade Node.js to version 12 or higher.
Replace { modules: false } with { useESModules: true } in preset options.Set { typescript: true } in preset options if using TypeScript.Remove explicit @babel/polyfill import if preset handles polyfilling via useBuiltIns.
Run npm install babel-preset-yoshi --save-dev
Set react: false in babel-preset-yoshi options if using another React preset, or remove the other preset.
Wrap preset options: { "presets": [["babel-preset-yoshi", { "targets": {...} }]] }