mirror of
https://github.com/encounter/objdiff.git
synced 2025-12-16 08:27:04 +00:00
Add experimental wasm bindings
Published to npm as objdiff-wasm
This commit is contained in:
15
objdiff-wasm/tsup.config.ts
Normal file
15
objdiff-wasm/tsup.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import {defineConfig} from 'tsup';
|
||||
import fs from 'node:fs/promises';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/main.ts', 'src/worker.ts'],
|
||||
clean: true,
|
||||
dts: true,
|
||||
format: 'esm',
|
||||
sourcemap: true,
|
||||
splitting: false,
|
||||
target: ['es2022', 'chrome89', 'edge89', 'firefox89', 'safari15', 'node14.8'],
|
||||
async onSuccess() {
|
||||
await fs.copyFile('pkg/objdiff_core_bg.wasm', 'dist/objdiff_core_bg.wasm');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user