mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
[wasm] fix: NCMFile & loader issue
This commit is contained in:
@@ -92,6 +92,9 @@ async function main() {
|
||||
// Ask rollup to build bundles.
|
||||
await run(['pnpm', 'build:bundle']);
|
||||
await run(['pnpm', 'exec', 'prettier', '--ignore-path', '', '-w', 'dist/loader.d.ts']);
|
||||
await replaceFileByRegex(path.join(wasmDistDir, 'loader.mjs'), [
|
||||
['fetch(filepath)', 'fetch(new URL(filepath, import.meta.url))'],
|
||||
]);
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user