dependency update, drop focusTrap, first tanstack experiment in RunnersOverview

This commit is contained in:
2023-04-12 15:20:38 +02:00
parent 70307a9e82
commit 9bec95ede8
32 changed files with 2188 additions and 1195 deletions

View File

@@ -1,39 +1,11 @@
import svelte from '@sveltejs/vite-plugin-svelte';
import { minify } from 'html-minifier';
// vite.config.js
import { defineConfig } from 'vite';
//
const indexReplace = () => {
return {
name: 'html-transform',
transformIndexHtml(html) {
return minify(html, {
collapseWhitespace: true
});
}
};
};
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig(({ command, mode }) => {
const isProduction = mode === 'production';
return {
// base: './',
build: {
polyfillDynamicImport: false,
cssCodeSplit: false,
minify: isProduction,
target: ["es2020", "esnext", "edge88", "chrome87", "safari14"]
},
plugins: [
svelte({
//@ts-ignore
hot: !isProduction,
emitCss: true,
extensions: ['.md', '.svx', '.svelte'],
preprocess: [
//
]
}),
indexReplace()
]
};
});
export default defineConfig({
plugins: [
svelte({
/* plugin options */
})
]
});