Socket
Socket
Sign inDemoInstall

vite-plugin-node-stdlib-browser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-node-stdlib-browser - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc