{"library":"rollup-plugin-node","title":"rollup-plugin-node","description":"A Rollup plugin that improves Node.js usage in Rollup bundles by automatically declaring native Node.js modules as external and removing unknown require/import statements. Version 0.2.1 is the current stable release; the plugin has no recent updates. It helps resolve issues with optional imports from external libraries that Rollup handles poorly. Differentiators: lightweight, minimal configuration, and specifically targets Node.js native modules and optional dependencies.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-node"],"cli":null},"imports":["import rollupPluginNode from 'rollup-plugin-node'","import rollupPluginNode from 'rollup-plugin-node'","import rollupPluginNode from 'rollup-plugin-node'; type Options = Parameters<typeof rollupPluginNode>[0]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import rollupPluginNode from 'rollup-plugin-node';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'output',\n    format: 'cjs'\n  },\n  plugins: [rollupPluginNode({\n    additionalOptionalDeps: {\n      'something.node': './addon'\n    }\n  })]\n};","lang":"javascript","description":"Shows basic usage of rollup-plugin-node, including optional additionalOptionalDeps configuration.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}