{"id":19066,"library":"babel-plugin-frontity","title":"babel-plugin-frontity","description":"A Babel plugin used internally by Frontity, a React framework for WordPress. Current version 1.0.4. It provides custom Babel configuration for Frontity projects, fixing source maps issues with Emotion and other build-time transformations. Not meant to be installed individually; it is a dependency of @frontity/core. The plugin is stable with low release cadence, as it only changes when core requires new Babel features. Alternatives include generic Babel presets, but this plugin is tailored to Frontity's specific needs.","status":"active","version":"1.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/frontity/frontity","tags":["javascript","frontity","typescript"],"install":[{"cmd":"npm install babel-plugin-frontity","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-frontity","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-frontity","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"babel-plugin-frontity is used internally by @frontity/core and should not be installed separately.","package":"@frontity/core","optional":false}],"imports":[{"note":"This package is a Babel plugin, not a JavaScript module. It should be referenced in .babelrc or babel.config.js as a plugin, not imported.","wrong":"import babelPluginFrontity from 'babel-plugin-frontity'","symbol":"default","correct":"No direct import; the plugin is used via Babel configuration."}],"quickstart":{"code":"// Ensure you have @frontity/core installed, which includes this plugin.\n// In your frontity.settings.js:\nexport default {\n  packages: ['my-theme'],\n  // No direct configuration needed for this plugin.\n};\n// The plugin is automatically applied by @frontity/core during build.\n// Example Babel config (not required):\n// module.exports = {\n//   plugins: ['babel-plugin-frontity']\n// };","lang":"javascript","description":"Shows that babel-plugin-frontity is automatically included via @frontity/core; no manual setup needed."},"warnings":[{"fix":"Do not add babel-plugin-frontity as a direct dependency. Use @frontity/core which includes it.","message":"This package is not meant to be installed individually; installing it separately may cause version conflicts.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"None required.","message":"No known deprecation warnings.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure @frontity/core is installed and you are not manually adding the plugin in Babel config.","cause":"Missing @frontity/core dependency or incorrect Babel plugin configuration.","error":"Cannot find module 'babel-plugin-frontity'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}