Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run the profiler from DevTools #128

Open
rwakos opened this issue Oct 2, 2024 · 1 comment
Open

Cant run the profiler from DevTools #128

rwakos opened this issue Oct 2, 2024 · 1 comment

Comments

@rwakos
Copy link

rwakos commented Oct 2, 2024

Hi all, I read all the suggestions, and also tried:

npm run build --profile

But it goes to infinite loop:

`> build

cd ./playground && npm run build --profile

build
cd ./playground && npm run build --profile

build
cd ./playground && npm run build --profile

build
cd ./playground && npm run build --profile

build
cd ./playground && npm run build --profile`

So I can not start a profile with the DevTools, what can I do?

@kentcdodds
Copy link
Member

I cannot reproduce this issue. Here's what I get when I run that after setting the playground to exercise 5:

~/code/epicweb-dev/react-performance (main) 🤖
$ npm run build

> build
> cd ./playground && npm run build


> [email protected] build
> tsc && vite build

vite v5.3.1 building for production...
✓ 59 modules transformed.
dist/index.html                     0.57 kB │ gzip:   0.33 kB
dist/assets/index-B27bX4Le.css      0.36 kB │ gzip:   0.20 kB
dist/assets/index-BlNrP4w1.js   1,271.09 kB │ gzip: 315.91 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants