{"id":27360,"library":"rollup-plugin-resolve","title":"rollup-plugin-resolve","description":"A rollup plugin that wraps the Node.js resolution algorithm for module resolution. Currently at version 0.0.1-predev.1, this package is in pre-release state with no stable releases. It serves as a resolver for Rollup, similar to @rollup/plugin-node-resolve but with no documentation or usage guidance. Not recommended for production use due to its early stage.","status":"deprecated","version":"0.0.1-predev.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install rollup-plugin-resolve","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-resolve","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-resolve","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for rollup plugin system","package":"rollup","optional":false},{"reason":"list of Node.js built-in modules for resolution","package":"builtin-modules","optional":false},{"reason":"Node.js resolution algorithm","package":"resolve","optional":false}],"imports":[{"note":"Package exports a default function, not a named export.","wrong":"import { resolve } from 'rollup-plugin-resolve'","symbol":"default","correct":"import resolve from 'rollup-plugin-resolve'"},{"note":"In CJS, default import is captured via require() directly, not destructuring.","wrong":"const { resolve } = require('rollup-plugin-resolve')","symbol":"resolve (CommonJS)","correct":"const resolve = require('rollup-plugin-resolve')"},{"note":"The default export is a function that takes options and returns a plugin object.","wrong":"import { resolve } from 'rollup-plugin-resolve'; const plugin = resolve({ ... })","symbol":"resolve (with options)","correct":"import resolve from 'rollup-plugin-resolve'; const plugin = resolve({ ... })"}],"quickstart":{"code":"import resolve from 'rollup-plugin-resolve';\nimport builtins from 'builtin-modules';\nexport default {\n  input: 'src/main.js',\n  output: { file: 'bundle.js', format: 'esm' },\n  plugins: [resolve({\n    builtins: false,\n    customResolveOptions: { moduleDirectory: ['node_modules'] }\n  })]\n};","lang":"javascript","description":"Configures Rollup to use the resolve plugin for module resolution, excluding Node built-ins."},"warnings":[{"fix":"Replace with 'npm install @rollup/plugin-node-resolve' and update import.","message":"This package is in pre-release (0.0.1-predev.1) and lacks documentation. Consider using @rollup/plugin-node-resolve instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use resolve() (with parentheses) in plugins array, not resolve alone.","message":"Default export is a function, not a plugin instance. Must call it with options to get a plugin object.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin to a specific version or migrate to a maintained plugin.","message":"No stable version exists; API may change without notice.","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install rollup-plugin-resolve@0.0.1-predev.1' and verify node_modules.","cause":"Package not installed or not published to npm correctly.","error":"Error: Cannot find module 'rollup-plugin-resolve'"},{"fix":"Change import to 'import resolve from 'rollup-plugin-resolve''.","cause":"Named import used instead of default import.","error":"TypeError: resolve is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}