mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
move bcrypt function to webworkers
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
// Import path module for resolving file paths
|
||||
import { resolve } from 'path';
|
||||
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
|
||||
|
||||
export default defineConfig({
|
||||
@@ -11,22 +10,8 @@ export default defineConfig({
|
||||
globals: true,
|
||||
setupFiles: ['./src/test/setup.ts']
|
||||
},
|
||||
|
||||
plugins: [react()],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
// Specify multiple entry points for Rollup
|
||||
input: {
|
||||
index: resolve(__dirname, 'index.html'), // Main entry for your React app
|
||||
background: resolve(__dirname, 'src/background.ts'), // Separate entry for the background script
|
||||
},
|
||||
output: {
|
||||
// Adjust the output settings if necessary
|
||||
entryFileNames: `[name].js`,
|
||||
chunkFileNames: `[name].js`,
|
||||
assetFileNames: `[name].[ext]`
|
||||
}
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [fixReactVirtualized],
|
||||
|
Reference in New Issue
Block a user