esbuild-plugin-wat
Version:
esbuild plugin for importing WebAssembly files
56 lines (55 loc) • 2 kB
JSON
{
"name": "esbuild-plugin-wat",
"description": "esbuild plugin for importing WebAssembly files",
"version": "0.2.7",
"repository": {
"type": "git",
"url": "https://github.com/mitschabaude/esbuild-plugin-wat"
},
"keywords": [
"wasm",
"wat",
"esbuild"
],
"author": "Gregor <gregor.mitscha-baude@gmx.at>",
"license": "MIT",
"type": "module",
"main": "index.js",
"exports": {
".": {
"import": "./index.js"
}
},
"browser": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"lib"
],
"bin": {
"watbundle": "./bin/watbundle.js"
},
"dependencies": {
"@webassemblyjs/ast": "https://github.com/mitschabaude/webassemblyjs/releases/latest/download/webassemblyjs-ast.tgz",
"@webassemblyjs/wasm-parser": "https://github.com/mitschabaude/webassemblyjs/releases/latest/download/webassemblyjs-wasm-parser.tgz",
"@webassemblyjs/wast-parser": "https://github.com/mitschabaude/webassemblyjs/releases/latest/download/webassemblyjs-wast-parser.tgz",
"@webassemblyjs/wast-printer": "https://github.com/mitschabaude/webassemblyjs/releases/latest/download/webassemblyjs-wast-printer.tgz",
"binaryen": "latest",
"find-cache-dir": "^3.3.1",
"minimist": "^1.2.5",
"parse-imports": "^1.1.0",
"wabt": "latest"
},
"devDependencies": {
"esbuild": "^0.12.19"
},
"scripts": {
"test": "node test/build.js test/sum.js && node dist/test/sum.js",
"test-simple": "node test/build.js test/simple.js && node dist/test/simple.js",
"test-raw": "node test/build-nobundle.js test/simple-raw.js && node dist/test/simple-raw.js",
"test-watch": "node test/build-watch.js test/sum.js & nodemon dist/test/sum.js",
"test-manual": "node test/build-nowrap.js test/sum-manual.js && node dist/test/sum-manual.js",
"build": "npx esbuild lib/wrap-wasm-import.ts > lib/wrap-wasm-import.js && node lib/code-to-text.js lib/wrap-wasm-import.js > lib/wrap-wasm-code.js"
}
}