Worker does not works on not linux
This commit is contained in:
@@ -49,6 +49,7 @@ function initWorker(): Promise<void> {
|
||||
if (msg.ok) {
|
||||
pendingReq.resolve(msg.data);
|
||||
} else {
|
||||
console.log(msg);
|
||||
pendingReq.reject(new Error(msg.error || 'Неизвестная ошибка Worker'));
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: 'esnext',
|
||||
target: 'es2020',
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['wa-sqlite'],
|
||||
@@ -13,5 +13,6 @@ export default defineConfig({
|
||||
'Cross-Origin-Opener-Policy': 'same-origin',
|
||||
'Cross-Origin-Embedder-Policy': 'require-corp',
|
||||
},
|
||||
host: true
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user