Registry / web-framework / rollup-plugin-resolve

rollup-plugin-resolve

JSON →
library0.0.1-predev.1jsnpmunverified

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.

npm install rollup-plugin-resolve
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-RESO
R
rollup-plugin-resolve
web-frameworkjavascriptv0.0.1-predev.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import resolve from 'rollup-plugin-resolve'
import { resolve } from 'rollup-plugin-resolve'
Package exports a default function, not a named export.
resolve (CommonJS)
const resolve = require('rollup-plugin-resolve')
const { resolve } = require('rollup-plugin-resolve')
In CJS, default import is captured via require() directly, not destructuring.
resolve (with options)
import resolve from 'rollup-plugin-resolve'; const plugin = resolve({ ... })
import { resolve } from 'rollup-plugin-resolve'; const plugin = resolve({ ... })
The default export is a function that takes options and returns a plugin object.

Configures Rollup to use the resolve plugin for module resolution, excluding Node built-ins.

import resolve from 'rollup-plugin-resolve'; import builtins from 'builtin-modules'; export default { input: 'src/main.js', output: { file: 'bundle.js', format: 'esm' }, plugins: [resolve({ builtins: false, customResolveOptions: { moduleDirectory: ['node_modules'] } })] };
Debug
Known issues
deprecatedThis package is in pre-release (0.0.1-predev.1) and lacks documentation. Consider using @rollup/plugin-node-resolve instead.
fix
Replace with 'npm install @rollup/plugin-node-resolve' and update import.
affects: >=0.0.0
gotchaDefault export is a function, not a plugin instance. Must call it with options to get a plugin object.
fix
Use resolve() (with parentheses) in plugins array, not resolve alone.
affects: >=0.0.0
breakingNo stable version exists; API may change without notice.
fix
Pin to a specific version or migrate to a maintained plugin.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-resolve'
Package not installed or not published to npm correctly.
fix
Run 'npm install rollup-plugin-resolve@0.0.1-predev.1' and verify node_modules.
TypeError: resolve is not a function
Named import used instead of default import.
fix
Change import to 'import resolve from 'rollup-plugin-resolve''.
Upgrade
Version history
0.0.1-predev.1latest on npm
Audit
Dependencies
rolluprequiredpeer dependency for rollup plugin system
builtin-modulesrequiredlist of Node.js built-in modules for resolution
resolverequiredNode.js resolution algorithm
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-resolve — npm install rollup-plugin-resolve · libregistry