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.

52 lines (51 loc) 1.49 kB
{ "name": "@web/rollup-plugin-import-meta-assets", "version": "2.3.0", "publishConfig": { "access": "public" }, "description": "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.", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/rollup-plugin-import-meta-assets" }, "author": "modern-web", "homepage": "https://github.com/modernweb-dev/web/tree/master/packages/rollup-plugin-import-meta-assets", "main": "src/index.js", "exports": { ".": { "import": "./index.mjs", "require": "./src/index.js" } }, "engines": { "node": ">=18.0.0" }, "scripts": { "test": "npm run test:node", "test:node": "mocha test/**/*.test.js test/*.test.js --reporter dot", "test:update-snapshots": "mocha test/**/*.test.js test/*.test.js --update-snapshots", "test:watch": "npm run test:node -- --watch" }, "files": [ "*.js", "*.mjs", "dist", "src" ], "keywords": [ "rollup", "plugin", "import-meta" ], "dependencies": { "@rollup/plugin-dynamic-import-vars": "^2.1.0", "@rollup/pluginutils": "^5.0.2", "estree-walker": "^2.0.2", "globby": "^13.2.2", "magic-string": "^0.30.0" }, "types": "dist/index" }