{"id":19343,"library":"babel-preset-sui","title":"babel-preset-sui","description":"A Babel preset for transpiling JavaScript in the SUI Components ecosystem. Current stable version: 3.55.0. Released as part of the SUI monorepo, updated alongside other packages. Key differentiators: includes unified transformations for SUI projects, protects against deprecated experimental features, automatically detects React or Preact and adds babel-preset-react. Bundles presets like babel-preset-env and plugins for async generators, decorators, class properties, object rest/spread, runtime, dynamic import, export extensions, and removing prop-types in production.","status":"active","version":"3.55.0","language":"javascript","source_language":"en","source_url":"https://github.com/SUI-Components/sui","tags":["javascript"],"install":[{"cmd":"npm install babel-preset-sui","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-sui","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-sui","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Used as a Babel preset, not imported in source files.","symbol":"babel-preset-sui","correct":"import 'babel-preset-sui' (used in Babel config, not directly in code)"}],"quickstart":{"code":"{\n  \"presets\": [\"sui\"]\n}","lang":"json","description":"Configure Babel to use babel-preset-sui in .babelrc or package.json."},"warnings":[{"fix":"npm install babel-preset-env --save-dev","message":"Requires babel-preset-env as a peer dependency. Ensure it is installed.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"Use a bundler that supports dynamic imports, like Webpack with @babel/plugin-syntax-dynamic-import removed.","message":"Dynamic import plugin only adds syntax support, not polyfill. Actual dynamic import requires Webpack or other bundler.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"Consider migrating to @babel/plugin-proposal-decorators with the 'legacy' mode or use the new decorator spec.","message":"babel-plugin-transform-decorators-legacy is used; newer Babel versions support the standard decorator proposal.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"npm install @babel/runtime","message":"babel-plugin-transform-runtime is included; ensure @babel/runtime is installed as a runtime dependency.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install babel-preset-sui --save-dev","cause":"babel-preset-sui is not installed as a devDependency.","error":"Module not found: Can't resolve 'babel-preset-sui'"},{"fix":"npm install @babel/preset-env --save-dev","cause":"Missing peer dependency babel-preset-env.","error":"Error: Cannot find module '@babel/preset-env'"},{"fix":"Upgrade to @s-ui/babel-preset-sui for Babel 7, or use babel-preset-sui v2 for Babel 6.","cause":"Using an incompatible version of Babel (Babel 6 vs Babel 7). babel-preset-sui v3 is for Babel 6.","error":"Error: Plugin/Preset files are not allowed to export objects, only functions."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}