{"id":22040,"library":"rollup-plugin-glimmer-redux","title":"rollup-plugin-glimmer-redux","description":"A Rollup plugin for integrating Glimmer.js applications with Redux, allowing custom stores, middleware, and enhancers. Version 1.0.1 is the latest stable release, originally published in 2017 with no recent updates. The plugin supports both TypeScript and JavaScript, defaulting to TypeScript since v1.0.0. It is specific to the Glimmer.js framework and requires configuration in both Rollup and the Glimmer environment. Differentiators include tight integration with Glimmer's build pipeline and type definitions for middleware/enhancers.","status":"maintenance","version":"1.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","redux","glimmer","rollup-plugin"],"install":[{"cmd":"npm install rollup-plugin-glimmer-redux","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-glimmer-redux","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-glimmer-redux","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Only default export; named imports will result in undefined.","wrong":"import { glimmerRedux } from 'rollup-plugin-glimmer-redux'","symbol":"default","correct":"import glimmerRedux from 'rollup-plugin-glimmer-redux'"},{"note":"CommonJS require must use default assignment, not destructuring.","wrong":"const { glimmerRedux } = require('rollup-plugin-glimmer-redux')","symbol":"default via require","correct":"const glimmerRedux = require('rollup-plugin-glimmer-redux')"},{"note":"Plugin does not ship TypeScript definitions; users may need to declare module or use @types.","wrong":"","symbol":"TypeScript import","correct":"import glimmerRedux from 'rollup-plugin-glimmer-redux'"}],"quickstart":{"code":"// rollup.config.js\nimport glimmerRedux from 'rollup-plugin-glimmer-redux';\nimport resolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    resolve(),\n    commonjs(),\n    glimmerRedux({\n      store: './src/store.ts',\n      middleware: './src/middleware/index.ts',\n      enhancers: './src/enhancers/index.ts'\n    })\n  ]\n};","lang":"typescript","description":"Configures Rollup with the Glimmer Redux plugin, specifying custom store, middleware, and enhancers files in TypeScript."},"warnings":[{"fix":"Consider using modern alternatives like glimmer-redux or @glimmer/redux if available.","message":"Package has not been updated since 2017. Glimmer.js and Redux integration patterns may have changed.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure moduleConfiguration for middleware, enhancers, etc. is set in environment.js as shown in README.","message":"Configuration requires both Rollup plugin options and updates to config/environment.js for type definitions.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Provide JavaScript file paths with .js extension in the options object.","message":"Plugin defaults to TypeScript files (.ts) since v1.0.0. Passing a .js file will cause build errors unless explicitly set.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'yarn add rollup-plugin-glimmer-redux' or 'npm install rollup-plugin-glimmer-redux'.","cause":"Package not installed or missing from node_modules.","error":"Error: Cannot find module 'rollup-plugin-glimmer-redux'"},{"fix":"Use 'import glimmerRedux from 'rollup-plugin-glimmer-redux'' (default import).","cause":"Named import used instead of default import.","error":"TypeError: glimmerRedux is not a function"},{"fix":"Add moduleConfiguration entries for 'store', 'middleware', and 'enhancers' as shown in README.","cause":"Missing type definitions in Glimmer environment configuration.","error":"Error: Config types not defined. Ensure moduleConfiguration for 'middleware' is present in config/environment.js"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}