{"library":"esbuild-plugin-wasm","type":"library","category":null,"description":"An asynchronous .wasm file loader for esbuild that lets you import WebAssembly modules directly via import statements, following the WebAssembly/ES Module Integration proposal. Current stable version is 1.1.0. It supports two modes: 'deferred' (default, copies WASM binary to output and fetches at runtime) and 'embedded' (embeds as base64, increasing bundle size ~30%). Requires esbuild >=0.11.0 and Node >=10.0.0. Key differentiator: lightweight alternative to heavier bundler setups, but note that top-level await only works with 'esm' output format, not 'iife' or 'cjs'. Ships TypeScript definitions.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","wasm","webassembly","esbuild","plugin","esbuild-plugin","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install esbuild-plugin-wasm","imports":["import { wasmLoader } from 'esbuild-plugin-wasm'","const { wasmLoader } = require('esbuild-plugin-wasm')","import wasm from './lib.wasm'","import wasm from './lib.wasm'; const module: typeof wasm = wasm"]},{"cmd":"yarn add esbuild-plugin-wasm","imports":[]},{"cmd":"pnpm add esbuild-plugin-wasm","imports":[]}],"homepage":null,"github":"https://github.com/Tschrock/esbuild-plugin-wasm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-wasm","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}