npm.io
0.3.0 • Published 3 years ago

@emnudge/rollup-plugin-wat

Licence
MIT
Version
0.3.0
Deps
4
Size
12 kB
Vulns
0
Weekly
0

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

Keywords