17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
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"
|
|
}
|
|
})
|