0.3.0 • Published 10 months ago

@emnudge/rollup-plugin-wat v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

rollup-plugin-wat

A Rollup plugin for directly importing "WebAssembly Text Format" files.

Imports are dynamically typed via creation of a local .d.ts file next to the .wat source.

https://github.com/EmNudge/rollup-plugin-wat/assets/24513691/324ab107-8969-4e3d-8553-aeacdd028e9a

Install

using npm

npm install --save-dev @emnudge/rollup-plugin-wat 

Usage

Add the plugin to your plugins array in your rollup.config.js file.

import { wat } from '@emnudge/rollup-plugin-wat';

export default {
  // ...some other config
  plugins: [wat()]
}

Credits