refactor: load WASM from local assets via postinstall script

This commit is contained in:
2026-02-25 10:52:59 +01:00
parent 08e1cac3a0
commit 77e0114e96
3 changed files with 28 additions and 39 deletions

View File

@@ -6,9 +6,11 @@
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint ."
"lint": "eslint .",
"postinstall": "mkdir -p public/wasm && cp node_modules/.pnpm/@ffmpeg+core@0.12.6/node_modules/@ffmpeg/core/dist/umd/ffmpeg-core.* public/wasm/ && cp node_modules/.pnpm/@imagemagick+magick-wasm@0.0.38/node_modules/@imagemagick/magick-wasm/dist/magick.wasm public/wasm/"
},
"dependencies": {
"@ffmpeg/core": "0.12.6",
"@ffmpeg/ffmpeg": "^0.12.15",
"@ffmpeg/util": "^0.12.2",
"@imagemagick/magick-wasm": "^0.0.38",