├── .eslintrc.cjs
├── .github
├── actions
│ └── install-dependencies
│ │ └── action.yml
└── workflows
│ └── ci.yml
├── .gitignore
├── .npmignore
├── .npmrc
├── .vscode
├── extensions.json
└── settings.json
├── LICENSE
├── README.md
├── examples
├── react
│ ├── index.html
│ ├── package.json
│ ├── src
│ │ ├── app.tsx
│ │ ├── env.d.ts
│ │ └── main.ts
│ ├── tsconfig.json
│ └── vite.config.ts
├── vanilla
│ ├── index.html
│ ├── package.json
│ ├── playwright.config.ts
│ ├── src
│ │ ├── env.d.ts
│ │ └── main.ts
│ ├── test
│ │ ├── e2e
│ │ │ └── main.spec.ts
│ │ └── utils
│ │ │ └── index.ts
│ ├── tsconfig.json
│ └── vite.config.ts
└── vue
│ ├── index.html
│ ├── package.json
│ ├── src
│ ├── app.ts
│ ├── app.vue
│ ├── env.d.ts
│ └── main.ts
│ ├── tsconfig.json
│ └── vite.config.ts
├── package.json
├── patches
└── buffer@6.0.3.patch
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── shims
├── buffer
│ ├── index.ts
│ └── package.json
├── global
│ ├── index.ts
│ └── package.json
├── package.json
├── process
│ ├── index.ts
│ └── package.json
└── vite.config.ts
├── src
├── env.d.ts
├── index.ts
└── utils.ts
├── test
├── error-repros
│ ├── missing-zlib-imports
│ │ ├── index.html
│ │ ├── package.json
│ │ ├── playwright.config.ts
│ │ ├── src
│ │ │ └── index.ts
│ │ ├── test
│ │ │ └── e2e
│ │ │ │ └── main.spec.ts
│ │ └── vite.config.ts
│ ├── process-disabled
│ │ ├── index.html
│ │ ├── package.json
│ │ ├── playwright.config.ts
│ │ ├── src
│ │ │ ├── env.d.ts
│ │ │ └── main.ts
│ │ ├── test
│ │ │ ├── e2e
│ │ │ │ └── main.spec.ts
│ │ │ └── utils
│ │ │ │ └── index.ts
│ │ ├── tsconfig.json
│ │ └── vite.config.ts
│ └── vite-scan-buffer-import-error
│ │ ├── index.html
│ │ ├── package.json
│ │ ├── test.ts
│ │ └── vite.config.ts
├── integration
│ ├── global-references
│ │ └── index.test.ts
│ └── import-globals
│ │ └── index.test.ts
└── utils
│ └── index.ts
├── tsconfig.json
├── vite.config.ts
└── vitest.config.ts
/.eslintrc.cjs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.eslintrc.cjs
--------------------------------------------------------------------------------
/.github/actions/install-dependencies/action.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.github/actions/install-dependencies/action.yml
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.github/workflows/ci.yml
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.gitignore
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.npmignore
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.npmrc
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.vscode/extensions.json
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/.vscode/settings.json
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/LICENSE
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/README.md
--------------------------------------------------------------------------------
/examples/react/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/index.html
--------------------------------------------------------------------------------
/examples/react/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/package.json
--------------------------------------------------------------------------------
/examples/react/src/app.tsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/src/app.tsx
--------------------------------------------------------------------------------
/examples/react/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/examples/react/src/main.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/src/main.ts
--------------------------------------------------------------------------------
/examples/react/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/tsconfig.json
--------------------------------------------------------------------------------
/examples/react/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/react/vite.config.ts
--------------------------------------------------------------------------------
/examples/vanilla/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/index.html
--------------------------------------------------------------------------------
/examples/vanilla/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/package.json
--------------------------------------------------------------------------------
/examples/vanilla/playwright.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/playwright.config.ts
--------------------------------------------------------------------------------
/examples/vanilla/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/examples/vanilla/src/main.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/src/main.ts
--------------------------------------------------------------------------------
/examples/vanilla/test/e2e/main.spec.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/test/e2e/main.spec.ts
--------------------------------------------------------------------------------
/examples/vanilla/test/utils/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/test/utils/index.ts
--------------------------------------------------------------------------------
/examples/vanilla/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/tsconfig.json
--------------------------------------------------------------------------------
/examples/vanilla/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vanilla/vite.config.ts
--------------------------------------------------------------------------------
/examples/vue/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/index.html
--------------------------------------------------------------------------------
/examples/vue/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/package.json
--------------------------------------------------------------------------------
/examples/vue/src/app.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/src/app.ts
--------------------------------------------------------------------------------
/examples/vue/src/app.vue:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/src/app.vue
--------------------------------------------------------------------------------
/examples/vue/src/env.d.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/src/env.d.ts
--------------------------------------------------------------------------------
/examples/vue/src/main.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/src/main.ts
--------------------------------------------------------------------------------
/examples/vue/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/tsconfig.json
--------------------------------------------------------------------------------
/examples/vue/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/examples/vue/vite.config.ts
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/package.json
--------------------------------------------------------------------------------
/patches/buffer@6.0.3.patch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/patches/buffer@6.0.3.patch
--------------------------------------------------------------------------------
/pnpm-lock.yaml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/pnpm-lock.yaml
--------------------------------------------------------------------------------
/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/pnpm-workspace.yaml
--------------------------------------------------------------------------------
/shims/buffer/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/buffer/index.ts
--------------------------------------------------------------------------------
/shims/buffer/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/buffer/package.json
--------------------------------------------------------------------------------
/shims/global/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/global/index.ts
--------------------------------------------------------------------------------
/shims/global/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/global/package.json
--------------------------------------------------------------------------------
/shims/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/package.json
--------------------------------------------------------------------------------
/shims/process/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/process/index.ts
--------------------------------------------------------------------------------
/shims/process/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/process/package.json
--------------------------------------------------------------------------------
/shims/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/shims/vite.config.ts
--------------------------------------------------------------------------------
/src/env.d.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/src/env.d.ts
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/src/index.ts
--------------------------------------------------------------------------------
/src/utils.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/src/utils.ts
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/index.html
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/package.json
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/playwright.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/playwright.config.ts
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/src/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/src/index.ts
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/test/e2e/main.spec.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/test/e2e/main.spec.ts
--------------------------------------------------------------------------------
/test/error-repros/missing-zlib-imports/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/missing-zlib-imports/vite.config.ts
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/index.html
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/package.json
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/playwright.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/playwright.config.ts
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/src/main.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/src/main.ts
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/test/e2e/main.spec.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/test/e2e/main.spec.ts
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/test/utils/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/test/utils/index.ts
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/tsconfig.json
--------------------------------------------------------------------------------
/test/error-repros/process-disabled/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/process-disabled/vite.config.ts
--------------------------------------------------------------------------------
/test/error-repros/vite-scan-buffer-import-error/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/vite-scan-buffer-import-error/index.html
--------------------------------------------------------------------------------
/test/error-repros/vite-scan-buffer-import-error/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/vite-scan-buffer-import-error/package.json
--------------------------------------------------------------------------------
/test/error-repros/vite-scan-buffer-import-error/test.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/vite-scan-buffer-import-error/test.ts
--------------------------------------------------------------------------------
/test/error-repros/vite-scan-buffer-import-error/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/error-repros/vite-scan-buffer-import-error/vite.config.ts
--------------------------------------------------------------------------------
/test/integration/global-references/index.test.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/integration/global-references/index.test.ts
--------------------------------------------------------------------------------
/test/integration/import-globals/index.test.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/integration/import-globals/index.test.ts
--------------------------------------------------------------------------------
/test/utils/index.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/test/utils/index.ts
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/tsconfig.json
--------------------------------------------------------------------------------
/vite.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/vite.config.ts
--------------------------------------------------------------------------------
/vitest.config.ts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/davidmyersdev/vite-plugin-node-polyfills/HEAD/vitest.config.ts
--------------------------------------------------------------------------------