mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-15 21:17:41 +01:00
* update deps * Remove ignoredBuiltDependencies * Fix build errors * try this * update config * add coma * Try this * Revert import change * try this * add wasm import * Load wasm * try this * Revert nitro version change * Revert nitro config change
17 lines
337 B
TypeScript
17 lines
337 B
TypeScript
import fs from 'fs';
|
|
import module from 'node:module';
|
|
/* WASM_IMPORT */
|
|
|
|
let wasm;
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
const require = module.createRequire(import.meta.url);
|
|
|
|
wasm = fs.readFileSync(require.resolve('@resvg/resvg-wasm/index_bg.wasm'));
|
|
} else {
|
|
// @ts-ignore
|
|
wasm = resvg_wasm;
|
|
}
|
|
|
|
export default wasm;
|