Compare commits

8 Commits

Author SHA1 Message Date
bc9e1670b2 fix: add vite plugins for wasm
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-19 13:44:55 +01:00
c0e13cdaa1 chore: update submodule ref
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-19 13:44:39 +01:00
3d1951c50a chore: update submodule ref
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-19 12:43:27 +01:00
90864d1b05 fix: rename ffprobe-wasm.js to .mjs on build
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-19 12:36:22 +01:00
e7dbb8c0c9 chore: update submodule ref
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-19 10:05:02 +01:00
cece48aaeb chore: change submodule ref
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-18 22:50:08 +01:00
5214d5c530 chore: updates to submodule
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-18 21:30:44 +01:00
ff2bef3e9c deps: update devDependencies
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
2026-02-18 20:40:23 +01:00
6 changed files with 1914 additions and 656 deletions

2
.gitmodules vendored
View File

@@ -1,3 +1,3 @@
[submodule "ffprobe-wasm-app"]
path = ffprobe-wasm-app
url = https://github.com/alfg/ffprobe-wasm
url = https://git.cislabs.de/cis-oss/ffprobe-wasm

View File

@@ -12,6 +12,7 @@ cd ffprobe-wasm-app
docker-compose run ffprobe-wasm make
cd ..
cp -R ffprobe-wasm-app/dist dist
mv dist/ffprobe-wasm.js dist/ffprobe-wasm.mjs
node scripts/replace.js
cp src/*.d.* dist

2524
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -31,8 +31,10 @@
"vite": "vite build"
},
"devDependencies": {
"@types/node": "^17.0.21",
"typescript": "^4.5.5",
"vite": "^2.8.6"
"@types/node": "^25.2.3",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-top-level-await": "^1.6.0",
"vite-plugin-wasm": "^3.5.0"
}
}

View File

@@ -1,5 +1,7 @@
import { resolve } from "path";
import { defineConfig } from "vite";
import topLevelAwait from "vite-plugin-top-level-await";
import wasm from "vite-plugin-wasm";
// https://vitejs.dev/config/
export default defineConfig({
@@ -14,18 +16,23 @@ export default defineConfig({
minify: false,
sourcemap: true,
},
worker: {
plugins: [
{
name: "append-source-url",
generateBundle(options, bundle) {
Object.entries(bundle).forEach(([file, output]) => {
if (output.type === "chunk") {
output.code += `\n//# sourceURL=${file}`;
}
});
},
},
wasm(),
topLevelAwait()
],
},
// worker: {
// plugins: [
// // {
// // name: "append-source-url",
// // generateBundle(options, bundle) {
// // Object.entries(bundle).forEach(([file, output]) => {
// // if (output.type === "chunk") {
// // output.code += `\n//# sourceURL=${file}`;
// // }
// // });
// // },
// // },
// ],
// },
});