Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-w3up-client-wasm-import

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-w3up-client-wasm-import

Alias w3up wasm dependencies to be imported

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

esbuild-plugin-w3up-client-wasm-import

Alias w3up wasm dependencies to be imported

Some environments (for instance Cloudflare Workers) require wasm bytecode to be imported. All other paths to load wasmm are disallowed by embedder. This plugin makes w3up-client dependencies using wasm to rely on imports by default.

Install

npm install esbuild-plugin-w3up-client-wasm-import

Usage

import { build } from 'esbuild'
import esbuildPluginW3up from 'esbuild-plugin-w3up-client-wasm-import'

await build({
  entryPoints: [path.join(__dirname, 'index.js')],
  bundle: true,
  format: 'esm',
  outfile: path.join(__dirname, 'dist', 'worker.js'),
  plugins: [
    esbuildPluginW3up
  ]
}

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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