vite-plugin-node-stdlib-browser
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "vite-plugin-node-stdlib-browser", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Configure `node-stdlib-browser` for Vite projects", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
@@ -23,1 +23,11 @@ # vite-plugin-node-stdlib-browser | ||
``` | ||
## Notes | ||
* `node:` protocol imports are not supported yet. | ||
* The plugin only polyfills the dependencies, not the user code. This is intentional because you shouldn't rely on Node.js built-in libraries in the browser. | ||
## Alternatives | ||
* [`vite-plugin-node-polyfills`](https://github.com/voracious/vite-plugin-node-polyfills) is a similar plugin that is also based on `node-stdlib-browser`, but supports `node:` protocol imports. | ||
* Another alternative is to use a combination of esbuild plugins (for dev server) and Rollup plugins (for production build) to polyfill Node.js built-in libraries. An example configuration is available at https://gist.github.com/FbN/0e651105937c8000f10fefdf9ec9af3d. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4853
33
64