1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 10:08:52 +08:00
This commit is contained in:
lana-k
2025-03-20 22:04:15 +01:00
parent 5e2b34a856
commit 0c1b91ab2f
146 changed files with 3317 additions and 2438 deletions

View File

@@ -11,23 +11,23 @@ export default defineConfig({
plugins: [
vue(),
nodePolyfills({
include: ['process', 'util', 'stream', 'buffer'],
globals: { global: true, process: true },
}),
include: ['process', 'util', 'stream', 'buffer'],
globals: { global: true, process: true }
}),
viteStaticCopy({
targets: [
{
src: 'LICENSE',
dest: './'
}
]
}),
targets: [
{
src: 'LICENSE',
dest: './'
}
]
}),
VitePWA({
filename: 'service-worker.js',
manifest: false,
injectRegister: false,
workbox: {
globPatterns: ["**\/*.{js,wasm,css,html,woff2,png}"],
globPatterns: ['**\/*.{js,wasm,css,html,woff2,png}'],
globIgnores: ['*.map', 'LICENSE', 'inquiries.json'],
clientsClaim: true,
skipWaiting: false,
@@ -39,10 +39,10 @@ export default defineConfig({
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
},
optimizeDeps: {
include:['sql.js'],
include: ['sql.js'],
esbuildOptions: {
define: {
global: 'globalThis'
@@ -56,4 +56,3 @@ export default defineConfig({
}
}
})