{"library":"rollup-plugin-url-resolve","title":"rollup-plugin-url-resolve","description":"Rollup plugin that resolves import specifiers as URLs, allowing you to fetch dependencies directly from CDNs (e.g., unpkg, jsdelivr) or local files instead of using npm/yarn. Version 0.2.0 is the latest stable release. It supports https, http, file, and data URL protocols. Designed as an alternative to rollup-plugin-node-resolve for URL-based imports. No breaking changes or significant release cadence; the package is minimal and stable. Options are passed through to make-fetch-happen for HTTP caching, retries, and proxy support. Works alongside rollup-plugin-commonjs for CommonJS URLs. Essential for projects that want to avoid a full install step.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-url-resolve"],"cli":null},"imports":["import urlResolve from 'rollup-plugin-url-resolve'","const urlResolve = require('rollup-plugin-url-resolve')","import urlResolve from 'rollup-plugin-url-resolve'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport urlResolve from 'rollup-plugin-url-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    urlResolve({\n      cacheManager: '.cache'\n    }),\n    commonjs({\n      include: /^https:\\/\\/unpkg\\.com/,\n      exclude: /^https:\\/\\/unpkg\\.com.*?\\?.*?\\bmodule\\b/\n    })\n  ]\n};","lang":"typescript","description":"Configures Rollup to use URL-based imports from unpkg with caching and CommonJS support for non-module URLs.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}