Socket
Book a DemoInstallSign in
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

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
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