Registry / devops / babel-plugin-saykit

babel-plugin-saykit

JSON →
library0.1.0jsnpmunverified

Babel plugin for SayKit, an i18n framework. Current version 0.1.0, early release. Designed for Next.js (Babel config), React Native, Expo, Metro, and other Babel-driven pipelines. For Vite, Rollup, Webpack, and esbuild, use unplugin-saykit instead. Requires the core SayKit package.

npm install babel-plugin-saykit
INSTALL
IMPORT
SIG · BABEL-PLUGIN-SAYKI
B
babel-plugin-saykit
devopsjavascriptv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
// In babel.config.js: export default { plugins: ['saykit'] };
// Using require in .babelrc without string quoting won't work // Wrong: { // plugins: [saykit] // }
Add plugin as string 'saykit' in Babel config. Do not import directly in code.

Shows installation and Babel configuration to enable i18n with SayKit.

// 1. Install // pnpm add -D babel-plugin-saykit // 2. Configure .babelrc or babel.config.js // .babelrc { "plugins": ["saykit"] } // or babel.config.js export default { plugins: ['saykit'], }; // 3. Use SayKit in your code import { t } from 'saykit'; t('hello')
Debug
Known issues
gotchaDo not use this plugin for Vite, Rollup, Webpack, or esbuild; use unplugin-saykit instead.
fix
Replace with unplugin-saykit for non-Babel bundlers.
affects: >=0.1.0
gotchaPlugin expects the core saykit package to be installed and imported in your code.
fix
Install saykit as a dependency and import t, etc. from 'saykit'.
affects: >=0.1.0
breakingVersion 0.1.0 is pre-release; API may change without major version bump.
fix
Pin exact version and review changelog on updates.
affects: <=0.1.0
Errors
Common errors & fixes
Cannot find module 'babel-plugin-saykit'
Plugin not installed or missing from package.json
fix
Run pnpm add -D babel-plugin-saykit
Error: Plugin configuration with name 'saykit' not found
Plugin name misspelled or not added to plugins array
fix
Ensure plugins: ['saykit'] in Babel config
TypeError: (0 , _saykit.t) is not a function
Missing core saykit package or incorrect import
fix
Install saykit: pnpm add saykit and import { t } from 'saykit'
Module not found: Can't resolve 'saykit'
saykit not installed or not in node_modules
fix
Run pnpm add saykit
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
saykitrequiredCore SayKit runtime required for i18n functionality
Agent activity
7 hits · last 30 days
node
6
Resources
babel-plugin-saykit — npm install babel-plugin-saykit · libregistry