feat(rapier2d): 新增Rapier2D WASM绑定包
This commit is contained in:
10
packages/rapier2d/tsup.config.ts
Normal file
10
packages/rapier2d/tsup.config.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["src/index.ts"],
|
||||
format: ["esm"],
|
||||
dts: true,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
external: ["../pkg/rapier_wasm2d.js"],
|
||||
});
|
||||
Reference in New Issue
Block a user