Registry /
devops / rollup-theme-extensions
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
createRollupConfig
✓ import { createRollupConfig } from 'rollup-theme-extensions'
✗ const createRollupConfig = require('rollup-theme-extensions')
ESM-only package; requires Rollup config file to be .mjs or type:module
default
✓ import createRollupConfig from 'rollup-theme-extensions'
✗ import { default } from 'rollup-theme-extensions'
No default export; only named export exists
RollupThemeExtensionsOptions
✓ import type { RollupThemeExtensionsOptions } from 'rollup-theme-extensions'
TypeScript type for options; available for type-checking
Basic Rollup config for Shopify theme app extensions using TypeScript and CSS minification.
// @ts-check
import { createRollupConfig } from 'rollup-theme-extensions';
const extensionsSourceDir = 'extensions.src';
const extensionsDir = 'extensions';
export default createRollupConfig({
extensionsSourceDir,
extensionsDir,
minifyCss: true,
minifyJs: true,
});
Debug
Known issues
gotchaSource maps are currently disabled because Shopify does not allow sourcemap file extensions inside the /assets folder.fixNo fix; sourcemaps are intentionally turned off. Do not attempt to enable via plugin options.
affects: >=0.0.0
gotchaThe source folder must contain subfolders with 'theme-' prefix; any other folder will be ignored.fixEnsure your extension directories are named starting with 'theme-' (e.g., 'theme-my-extension').
affects: >=0.0.0
gotchaOutput is always placed inside an 'assets' folder within the extension directory; this cannot be customized.fixDo not specify output paths; they are fixed to <extensionsDir>/<extension-name>/assets/.
affects: >=0.0.0
deprecatedNo deprecated features known in current version.
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'rollup-theme-extensions'
Package not installed or missing from node_modules.
fixRun 'npm install --save-dev rollup-theme-extensions rollup' in your project.
The requested module 'rollup-theme-extensions' does not provide an export named 'default'
Using default import when only named export 'createRollupConfig' exists.
fixUse 'import { createRollupConfig } from 'rollup-theme-extensions'' instead of default import. Error: No extensions found in source directory: ...
Source directory does not contain subfolders starting with 'theme-'.
fixCreate subfolders with 'theme-' prefix inside the source directory, each containing an 'assets' folder.
Audit
Dependencies
rolluprequiredpeer dependency; Rollup must be installed separately to use this plugin