Standalone version of Babel bundled with presets and plugins for React Native, used in Expo Snack Runtime and Website. Version 5.0.0, released as part of the Snack monorepo. Optimized for runtime code parsing/transformation in browser environments, with two separate entrypoints (default for runtime, eslint for @babel/core replacement). Includes metro-react-native-babel-preset and @babel/preset-typescript. Unlike @babel/standalone, this is specifically tailored for React Native/Expo tooling and bundles only necessary dependencies to minimize bundle size.
npm install snack-babel-standaloneVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing the namespace and transforming TypeScript code with preset and plugin options.
Use ES module import syntax, e.g., import * as babel from 'snack-babel-standalone'.
Use namespace import: import * as babel from 'snack-babel-standalone'.
Use snack-babel-standalone/eslint for ESLint parser replacement.
Use import * as babel from 'snack-babel-standalone' instead.
Run 'yarn add snack-babel-standalone' or 'npm install snack-babel-standalone'.