{"library":"rollup-plugin-pnp-resolve","title":"rollup-plugin-pnp-resolve","description":"A Rollup plugin that resolves modules using Yarn's Plug'n'Play (PnP) API instead of the traditional node_modules resolution. Version 2.0.0 requires Node >=6 and supports Rollup's plugin system. It forwards options to PnP's resolveRequest, such as custom extensions. This plugin is part of a family of PnP resolvers for various tools including TypeScript (ts-pnp), Webpack (pnp-webpack-plugin), and Jest (jest-pnp-resolver). Unlike traditional resolvers, it directly uses the PnP dependency tree for faster and more reliable resolution in Yarn PnP projects, eliminating the need for node_modules.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-pnp-resolve"],"cli":null},"imports":["import pnpResolve from 'rollup-plugin-pnp-resolve'","const resolve = require('rollup-plugin-pnp-resolve')","plugins: [pnpResolve({ extensions: ['.js'] })]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport pnpResolve from 'rollup-plugin-pnp-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'cjs',\n  },\n  plugins: [\n    commonjs(),\n    pnpResolve({ extensions: ['.js', '.jsx'] })\n  ]\n};","lang":"javascript","description":"Basic Rollup config using PnP resolve with CommonJS support and custom extensions.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}