mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
splitting query moved to web worker
This commit is contained in:
@@ -7,8 +7,10 @@ import { terser } from 'rollup-plugin-terser';
|
||||
import sveltePreprocess from 'svelte-preprocess';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import webWorkerLoader from 'rollup-plugin-web-worker-loader';
|
||||
import css from 'rollup-plugin-css-only';
|
||||
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
function serve() {
|
||||
@@ -99,6 +101,8 @@ export default {
|
||||
// If we're building for production (npm run build
|
||||
// instead of npm run dev), minify
|
||||
production && terser(),
|
||||
|
||||
webWorkerLoader(),
|
||||
],
|
||||
watch: {
|
||||
clearScreen: false,
|
||||
|
||||
Reference in New Issue
Block a user