Analyzing bundles with source-map-explorer doens't work
Created by: carpben
Is this a bug report?
yes
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
analyze
Environment
Environment Info: System: OS: Windows 10 CPU: x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Binaries: Yarn: 1.9.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: 42.17134.1.0 Internet Explorer: 11.0.17134.1 npmPackages: react: ^16.7.0 => 16.8.5 react-dom: ^16.7.0 => 16.8.5 react-scripts: ^2.1.5 => 2.1.8 npmGlobalPackages: create-react-app: Not Found
Steps to Reproduce
- create a typescript CRA project
- create components.
- Divide them to various apps/sub projects.
- Render apps conditionally, using React.lazy and Suspense
- Follow instructions on https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
a. npm install --save source-map-explorer
b. add
"analyze": "source-map-explorer 'build/static/js/*.js'"
to scripts. c. run "npm run build" followed by "npm run analyse".