UNPKG

@web/rollup-plugin-import-meta-assets

Version:

Rollup plugin that detects assets references relative to modules using patterns such as `new URL('./path/to/asset.ext', import.meta.url)`. The assets are added to the rollup pipeline, allowing them to be transformed and hash the filenames.

6 lines (3 loc) 146 B
import cjsEntrypoint from './src/rollup-plugin-import-meta-assets.js'; const { importMetaAssets } = cjsEntrypoint; export { importMetaAssets };