blurhash-c-wasm/rollup.config.js

18 lines
464 B
JavaScript
Raw Normal View History

2023-08-12 09:14:14 +00:00
import { defineConfig } from "rollup";
import path from "node:path";
import url from "node:url"
import Typescript from "@rollup/plugin-typescript";
import Wasm from "@rollup/plugin-wasm";
const dirname = path.dirname(url.fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [Typescript(), Wasm({targetEnv: "auto-inline"})],
input: path.resolve(dirname, "src/library.ts"),
output: {
dir: "dist",
format: "es",
sourcemap: "inline"
}
})