- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
577 B
Markdown
29 lines
577 B
Markdown
# @webassemblyjs/wasm-parser
|
|
|
|
> WebAssembly binary format parser
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
yarn add @webassemblyjs/wasm-parser
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
import { decode } from "@webassemblyjs/wasm-parser";
|
|
import { readFileSync } from "fs";
|
|
|
|
const binary = readFileSync("/path/to/module.wasm");
|
|
|
|
const decoderOpts = {};
|
|
const ast = decode(binary, decoderOpts);
|
|
```
|
|
|
|
### Decoder options
|
|
|
|
- `dump`: print dump information while decoding (default `false`)
|
|
- `ignoreCodeSection`: ignore the code section (default `false`)
|
|
- `ignoreDataSection`: ignore the data section (default `false`)
|
|
|