# rollup-plugin-wasm **Repository Path**: xxXyh1908/rollup-plugin-wasm ## Basic Information - **Project Name**: rollup-plugin-wasm - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-30 - **Last Updated**: 2021-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: rollup-plugin, rollup, Wasm, WebAssembly ## README

rollup-plugin-wasm 👋

Version rollup License: MIT

> Rollup plugin to bundle wasm module. Support assemblyScript, emscripten, golang. Support vite. ### 🏠 [Homepage](https://gitee.com/xxXyh1908/rollup-plugin-wasm/#readme) ## install ```bash npm i -D @xyh19/rollup-plugin-wasm # or yarn add -D @xyh19/rollup-plugin-wasm ``` ## Getting Started Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin: ```js // rollup.config.js import wasm from '@xyh19/rollup-plugin-wasm' import path from 'path' export default { input: 'src/index.js', output: { dir: 'output', format: 'cjs', }, plugins: [ wasm(), ], } ``` ## Configuration ### inline - **Type:** `boolean | number | ((fileName: string, id: string) => boolean | Promise)` Inline webassembly directly in source code. ### useInstanceFactory(experimental) - **Type:** `boolean | CustomWebAssemblyInstanceFactory` ### debug(experimental) - **Type:** `boolean` Enable debug mode. ### target - **Type:** `undefined | 'node'` ### asc AssemblyScript compile. ### emscripten(experimental) Emscripten compile. ### golang golang compile. ## 🤝 Contributing Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://gitee.com/xxXyh1908/rollup-plugin-wasm/issues). ## Show your support Give a ⭐️ if this project helped you!