-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
Description
Describe the bug
Installed the vite devtools and my build time spikes from 3s to 4minutes.
Vite config -
export default defineConfig({
css: {
transformer: "lightningcss",
modules: {
localsConvention: "camelCase",
},
},
plugins: [
DevTools(),
babel({ presets: [decoratorPreset({ version: "2023-11" })] }),
tailwindCss(),
react(),
{
name: "inline-svg-spinner-to-html",
transformIndexHtml: (html) =>
html.replace(
"%SVG_SPINNER_INLINE%",
readFileSync(
path.resolve(import.meta.dirname, "./icons/external/layout-loader-cis.svg"),
"utf-8",
),
),
},
viteStaticCopy({
targets: [...(isSandbox ? [] : swaggerStaticFiles)],
}),
],
resolve: {
alias: {
app: path.resolve(import.meta.dirname, "./src/main/javascript"),
public: path.resolve(import.meta.dirname, "public"),
},
},
define: {
__IS_SANDBOX_BUILD__: isSandbox,
},
build: {
outDir: path.resolve(process.cwd(), "build/resources/main/static"),
assetsDir: ".",
rollupOptions: {
output: {
/**
* We have to change default chunkFileNames to avoid blocking Adblock.
* Issue: https://github.com/rollup/rollup/issues/5374
*/
chunkFileNames: "[name]-testops-[hash].js",
},
devtools: {},
},
},
Reproduction
missing
System Info
Ok to proceed? (y)
System:
OS: macOS 26.3.1
CPU: (10) arm64 Apple M1 Pro
Memory: 95.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.14.1 - /Users/vladimirsemenov/.vite-plus/js_runtime/node/24.14.1/bin/node
npm: 11.11.0 - /Users/vladimirsemenov/.vite-plus/js_runtime/node/24.14.1/bin/npm
bun: 1.3.5 - /Users/vladimirsemenov/.bun/bin/bun
Deno: 1.24.0 - /Users/vladimirsemenov/.deno/bin/deno
Browsers:
Chrome: 146.0.7680.165
Firefox: 148.0
Safari: 26.3.1Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Reactions are currently unavailable