{"library":"shakapacker","title":"Shakapacker","description":"Shakapacker is the official, actively maintained successor to rails/webpacker that integrates Webpack v5+ (or Rspack for 10x faster builds) with Rails for managing app-like JavaScript modules. Version 10.0.0 requires Node >=20 and supports Rspack v2, esbuild, and SWC loaders. Released by ShakaCode with regular cadence (v9.6.2 latest stable, v10.0.0 recent), it provides a robust Ruby gem and npm package for configuration, asset manifest generation, and development server integration. Key differentiators: native Rspack support, semantic config diffing (bin/diff-bundler-config), and compatibility with jsbundling-rails alternatives. Ships TypeScript types.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install shakapacker"],"cli":{"name":"shakapacker","version":null}},"imports":["import { shakapacker } from 'shakapacker'","import { ShakapackerDeployment } from 'shakapacker/deployment'","import { ShakapackerConfig } from 'shakapacker/config'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: yarn add --dev shakapacker@^10.0.0\n// Then configure webpack.config.js or rspack.config.js\nconst { shakapacker } = require('shakapacker');\n\n// Example: get public output path\nconst publicPath = shakapacker.publicOutputPath;\nconsole.log('Public path:', publicPath);\n\n// For deployment manifest\nconst { ShakapackerDeployment } = require('shakapacker/deployment');\nconst deployment = new ShakapackerDeployment({ manifestPath: './public/packs/manifest.json' });\ndeployment.deploy();\n\n// For configuration reading\nconst { ShakapackerConfig } = require('shakapacker/config');\nconst config = new ShakapackerConfig();\nconsole.log('Dev server enabled:', config.devServer?.enabled);","lang":"javascript","description":"Shows basic imports from shakapacker npm package: main export, deployment, and config subpaths.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}