{"id":22317,"library":"rollup-theme-extensions","title":"rollup-theme-extensions","description":"A Rollup config generator for building Shopify Theme App Extensions with TypeScript and CSS support. Version 1.1.1 is the latest stable release. It handles TypeScript compilation and minification, CSS minification, and Rollup bundling with custom source/output folders. Differentiator: purpose-built for Shopify theme app extension folder structure, with opinionated defaults for that ecosystem. Currently no significant release cadence.","status":"active","version":"1.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/muchisx/rollup-theme-extensions","tags":["javascript"],"install":[{"cmd":"npm install rollup-theme-extensions","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-theme-extensions","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-theme-extensions","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; Rollup must be installed separately to use this plugin","package":"rollup","optional":false}],"imports":[{"note":"ESM-only package; requires Rollup config file to be .mjs or type:module","wrong":"const createRollupConfig = require('rollup-theme-extensions')","symbol":"createRollupConfig","correct":"import { createRollupConfig } from 'rollup-theme-extensions'"},{"note":"No default export; only named export exists","wrong":"import { default } from 'rollup-theme-extensions'","symbol":"default","correct":"import createRollupConfig from 'rollup-theme-extensions'"},{"note":"TypeScript type for options; available for type-checking","wrong":"","symbol":"RollupThemeExtensionsOptions","correct":"import type { RollupThemeExtensionsOptions } from 'rollup-theme-extensions'"}],"quickstart":{"code":"// @ts-check\nimport { createRollupConfig } from 'rollup-theme-extensions';\n\nconst extensionsSourceDir = 'extensions.src';\nconst extensionsDir = 'extensions';\n\nexport default createRollupConfig({\n  extensionsSourceDir,\n  extensionsDir,\n  minifyCss: true,\n  minifyJs: true,\n});","lang":"typescript","description":"Basic Rollup config for Shopify theme app extensions using TypeScript and CSS minification."},"warnings":[{"fix":"No fix; sourcemaps are intentionally turned off. Do not attempt to enable via plugin options.","message":"Source maps are currently disabled because Shopify does not allow sourcemap file extensions inside the /assets folder.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure your extension directories are named starting with 'theme-' (e.g., 'theme-my-extension').","message":"The source folder must contain subfolders with 'theme-' prefix; any other folder will be ignored.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Do not specify output paths; they are fixed to <extensionsDir>/<extension-name>/assets/.","message":"Output is always placed inside an 'assets' folder within the extension directory; this cannot be customized.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"","message":"No deprecated features known in current version.","severity":"deprecated","affected_versions":""}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev rollup-theme-extensions rollup' in your project.","cause":"Package not installed or missing from node_modules.","error":"Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'rollup-theme-extensions'"},{"fix":"Use 'import { createRollupConfig } from 'rollup-theme-extensions'' instead of default import.","cause":"Using default import when only named export 'createRollupConfig' exists.","error":"The requested module 'rollup-theme-extensions' does not provide an export named 'default'"},{"fix":"Create subfolders with 'theme-' prefix inside the source directory, each containing an 'assets' folder.","cause":"Source directory does not contain subfolders starting with 'theme-'.","error":"Error: No extensions found in source directory: ..."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}