{"library":"rollup-plugin-node-globals","title":"rollup-plugin-node-globals","description":"A Rollup plugin (v1.4.0, last released in 2018) that injects Node.js global polyfills—process, global, Buffer, __dirname, __filename—into bundled code, mimicking browserify's global shimming. It optimizes process.nextTick and process.browser to only pull in required parts, and resolves __dirname/__filename to the file on disk. Useful for migrating CommonJS or Node-centric code to ES module bundles, but superseded by @rollup/plugin-inject or manual polyfills; unmaintained and incompatible with Rollup v2+.","language":"javascript","status":"deprecated","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-node-globals"],"cli":null},"imports":["import globals from 'rollup-plugin-node-globals'","import globals from 'rollup-plugin-node-globals'; export default { plugins: [globals()] }","globals({ process: false, global: false, buffer: false, dirname: false, filename: false, baseDir: '/some/path' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import globals from 'rollup-plugin-node-globals';\n\nexport default {\n  input: 'src/index.js',\n  output: { file: 'dist/bundle.js', format: 'iife' },\n  plugins: [\n    globals({\n      process: true,\n      global: true,\n      buffer: true,\n      dirname: true,\n      filename: true,\n      baseDir: process.cwd()\n    })\n  ]\n};","lang":"javascript","description":"Basic Rollup configuration using rollup-plugin-node-globals to polyfill process, global, Buffer, __dirname, and __filename.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}