Fix proofmode worker build error

This commit is contained in:
N-Pex 2025-06-12 12:00:43 +02:00
parent bdca4ae3e3
commit 41d3b7c183
2 changed files with 10 additions and 3 deletions

View file

@ -16,7 +16,7 @@
<link rel="apple-touch-icon" href="./icons/icon-384x384.png" sizes="384x384" /> <link rel="apple-touch-icon" href="./icons/icon-384x384.png" sizes="384x384" />
<link rel="apple-touch-icon" href="./icons/icon-512x512.png" sizes="512x512" /> <link rel="apple-touch-icon" href="./icons/icon-512x512.png" sizes="512x512" />
<link rel="manifest" href="./manifest.json" /> <link rel="manifest" href="./manifest.json" />
<script src="./lottie-player.js"></script> <script src="/lottie-player.js" type="module"></script>
<style> <style>
#loader { #loader {
position: fixed; position: fixed;

View file

@ -38,8 +38,14 @@ export default defineConfig(({mode}) => ({
} }
] ]
}), }),
//nodePolyfills(),
], ],
worker: {
format: "es",
plugins: () => [
wasm(),
topLevelAwait()
]
},
resolve: { resolve: {
extensions: ['.vue','.mjs', '.js', '.ts', '.jsx', '.tsx', '.json','.wasm'], extensions: ['.vue','.mjs', '.js', '.ts', '.jsx', '.tsx', '.json','.wasm'],
alias: [ alias: [
@ -48,7 +54,8 @@ export default defineConfig(({mode}) => ({
{ find: "vue", replacement: fileURLToPath(new URL("./node_modules/vue/dist/vue.esm-bundler.js", import.meta.url)) }, { find: "vue", replacement: fileURLToPath(new URL("./node_modules/vue/dist/vue.esm-bundler.js", import.meta.url)) },
], ],
}, },
build: { build: {
assetsDir: "assets",
commonjsOptions: { transformMixedEsModules: true } commonjsOptions: { transformMixedEsModules: true }
} }
})); }));