mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
put mempow in webworker and changed wasm import
This commit is contained in:
@@ -3,18 +3,21 @@ import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
// Import path module for resolving file paths
|
||||
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
|
||||
import wasm from 'vite-plugin-wasm';
|
||||
import topLevelAwait from 'vite-plugin-top-level-await';
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
setupFiles: ['./src/test/setup.ts']
|
||||
},
|
||||
|
||||
plugins: [react()],
|
||||
assetsInclude: ['**/*.wasm'],
|
||||
plugins: [react(), wasm(), topLevelAwait()],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [fixReactVirtualized],
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user