Skip to content

Commit

Permalink
Increase chunk size warning limit (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo authored Aug 7, 2023
1 parent dec5ade commit 9eb9731
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-rabbits-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ladle/react": patch
---

Increase chunk size warning
1 change: 1 addition & 0 deletions packages/ladle/lib/cli/vite-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const getBaseViteConfig = async (ladleConfig, configFolder, viteConfig) => {
include: [
"react",
"react-dom",
"react-hotkeys-hook",
"react/jsx-runtime",
"react/jsx-dev-runtime",
"react-inspector",
Expand Down
1 change: 1 addition & 0 deletions packages/ladle/lib/cli/vite-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const viteProd = async (config, configFolder) => {
build: {
outDir: path.join(process.cwd(), config.outDir),
emptyOutDir: true,
chunkSizeWarningLimit: 2000,
},
});
await build(viteConfig);
Expand Down

1 comment on commit 9eb9731

@vercel
Copy link

@vercel vercel bot commented on 9eb9731 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ladle – ./

ladle.vercel.app
ladle-git-main-miksu.vercel.app
ladle.dev
ladle-miksu.vercel.app

Please sign in to comment.