├── .babelrc ├── .eslintrc ├── .gitignore ├── package.json ├── readme.md ├── rollup.config.js ├── src ├── browser.js ├── global.js ├── index.js └── inject │ ├── index.js │ └── makeLegalIdentifier.js ├── test ├── __snapshots__ │ ├── conditional.test.js.snap │ └── form.test.js.snap ├── conditional.test.js ├── fixtures │ ├── buffer-import.js │ ├── buffer-isBuffer.js │ ├── buffer.js │ ├── dirname.js │ ├── global.js │ ├── mixed.js │ ├── process-browser.js │ ├── process-env.js │ ├── process-generic.js │ ├── process-nexttick.js │ └── process-sneaky.js ├── form.test.js └── index.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [["env", { "modules": false }]] 3 | } 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/readme.md -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/browser.js: -------------------------------------------------------------------------------- 1 | export var browser = true; 2 | -------------------------------------------------------------------------------- /src/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/src/global.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/src/index.js -------------------------------------------------------------------------------- /src/inject/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/src/inject/index.js -------------------------------------------------------------------------------- /src/inject/makeLegalIdentifier.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/src/inject/makeLegalIdentifier.js -------------------------------------------------------------------------------- /test/__snapshots__/conditional.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/__snapshots__/conditional.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/form.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/__snapshots__/form.test.js.snap -------------------------------------------------------------------------------- /test/conditional.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/conditional.test.js -------------------------------------------------------------------------------- /test/fixtures/buffer-import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/buffer-import.js -------------------------------------------------------------------------------- /test/fixtures/buffer-isBuffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/buffer-isBuffer.js -------------------------------------------------------------------------------- /test/fixtures/buffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/buffer.js -------------------------------------------------------------------------------- /test/fixtures/dirname.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/dirname.js -------------------------------------------------------------------------------- /test/fixtures/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/global.js -------------------------------------------------------------------------------- /test/fixtures/mixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/mixed.js -------------------------------------------------------------------------------- /test/fixtures/process-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/process-browser.js -------------------------------------------------------------------------------- /test/fixtures/process-env.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/process-env.js -------------------------------------------------------------------------------- /test/fixtures/process-generic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/process-generic.js -------------------------------------------------------------------------------- /test/fixtures/process-nexttick.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/process-nexttick.js -------------------------------------------------------------------------------- /test/fixtures/process-sneaky.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/fixtures/process-sneaky.js -------------------------------------------------------------------------------- /test/form.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/form.test.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/test/index.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-globals/HEAD/yarn.lock --------------------------------------------------------------------------------