/rollup-plugin-wat

Import WAT files with Rollup

Primary LanguageTypeScript

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.

demo.mp4

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