surma / rollup-plugin-wasm-esm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rollup-plugin-wasm-esm

A Rollup plugin that allows you to import WebAssembly files as modules and does dead-code-elimination.

Usage

Installation

$ npm install --save @surma/rollup-plugin-wasm-esm

Configuration

// rollup.config.js
import { wasmEsm } from "@surma/rollup-plugin-wasm-esm";

export default {
  /* ... */
  plugins: [
    // ...
    wasmEsm()
    // ...
  ]
};

License Apache-2.0

About

License:Apache License 2.0


Languages

Language:JavaScript 92.7%Language:WebAssembly 4.6%Language:HTML 2.7%