This package provides the necessary Babel plugin for the Wallace framework (version 0.17.1, actively developed). It transforms JSX and other syntax to enable features like server-side rendering and component hydration within Wallace applications. Unlike generic Babel presets, this plugin is tailored specifically for Wallace's runtime, handling Wallace-specific directives and optimizations. It ships with TypeScript definitions and is typically used alongside the core `wallace` package. The plugin follows the release cadence of the main Wallace framework, with frequent updates to match new features.
npm install babel-plugin-wallaceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the Wallace Babel plugin in babel.config.js and use it programmatically with @babel/core to transform JSX.
Update import from 'import wallace from ...' to 'import { wallacePlugin } from ...' or adjust require accordingly.Remove `sourceMap` option and rely on Babel's `sourceMaps: true` in config.
Ensure @babel/core version is >=7.0.0.
Add '@babel/preset-typescript' before this plugin in the plugins array.
Run `npm install babel-plugin-wallace --save-dev`.
Change to `import { wallacePlugin } from 'babel-plugin-wallace'` or use `require('babel-plugin-wallace').default`.Upgrade to Babel 7: `npm install @babel/core --save-dev` and update config to use @babel/ prefix.
Add '@babel/preset-react' to presets and ensure this plugin runs after.