mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
[wasm] build: fix build with node/browser
This commit is contained in:
@@ -5,7 +5,12 @@ import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
function makePlugins({ sync }) {
|
||||
const plugins = [];
|
||||
plugins.push(wasm({ sync: sync ? ['pkg/um_wasm_bg.wasm'] : [] }));
|
||||
plugins.push(
|
||||
wasm({
|
||||
sync: sync ? ['pkg/um_wasm_bg.wasm'] : [],
|
||||
fileName: 'um_wasm_bg.wasm',
|
||||
}),
|
||||
);
|
||||
plugins.push(
|
||||
replace({
|
||||
preventAssignment: true,
|
||||
|
||||
Reference in New Issue
Block a user