Rollup plugin (v0.1.4, latest stable) that provides file watching, copy, transform, repath, and rename capabilities using glob patterns. Differentiates from alternatives like rollup-plugin-copy by offering inline transformation via object or function, clean destination option, and no unnecessary dependencies. Ship TypeScript types. Low release cadence (initial release Aug 2024, no updates since). Primarily used for static asset copying with optional content modification in Rollup builds.
npm install rollup-plugin-globlinVerified import paths — ran on the pinned version, not inferred.
Copies SVG files from assets/ to dist/assets/, transforms content to uppercase, renames extension to .SVG, and cleans destination before copy.
Upgrade to v0.1.1 and adapt transform callback to accept an object with { content, file, dest } properties.Always return { content, file, dest } from transform function or object; dest key in transform config object is ignored.Ensure content is a string, e.g., content.toString() if needed.
Review transform documentation: string without slash = rename, string with slash = repath from dest.
Use clean: true with caution; avoid setting dest to root or important project directories.
Use import (ESM) instead: import globs from 'rollup-plugin-globlin'
Ensure transform returns a string or an object with content property (string).
Run: pnpm add rollup-plugin-globlin --save-dev
No dependency data recorded yet.