Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Jan 16, 2024
1 parent a847316 commit 8da5e17
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,38 @@

### Installation

You can install the package with your favorite package manager

```bash
npm install @scuderia-fe/docx-to-html
yarn add @scuderia-fe/docx-to-html
pnpm add @scuderia-fe/docx-to-html
bun add @scuderia-fe/docx-to-html
```

Your project needs to support `asyncWebAssembly`:

- [Vite](https://github.com/Menci/vite-plugin-wasm)

```bash
npm install --save-dev vite-plugin-wasm vite-plugin-top-level-await
```

```ts
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";

export default defineConfig({
plugins: [wasm(), topLevelAwait()],
});
```

- Webpack

```js
module.exports = {
experiments: {
asyncWebAssembly: true,
topLevelAwait: true,
},
};
```

### Usage
Expand Down

0 comments on commit 8da5e17

Please sign in to comment.