Registry / devops / rollup-theme-extensions

rollup-theme-extensions

JSON →
library1.1.1jsnpmunverified

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.

npm install rollup-theme-extensions
INSTALL
IMPORT
SIG · ROLLUP-THEME-EXTEN
R
rollup-theme-extensions
devopsjavascriptv1.1.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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
musl
node 18–223 runs
build_error
glibc
node 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.
fix
No 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.
fix
Ensure 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.
fix
Do 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.
fix
Run '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.
fix
Use '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-'.
fix
Create subfolders with 'theme-' prefix inside the source directory, each containing an 'assets' folder.
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
rolluprequiredpeer dependency; Rollup must be installed separately to use this plugin
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-theme-extensions — npm install rollup-theme-extensions · libregistry