Skip to content

Commit

Permalink
Add exploreTree script for inspecting tree bundle content (#23490)
Browse files Browse the repository at this point in the history
## Description

Add a script to make using my preferred tool for attributing bundle
content, source-map-explorer, easier.
  • Loading branch information
CraigMacomber authored Jan 13, 2025
1 parent 1db6729 commit 3dbf023
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/utils/bundle-size-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"clean": "rimraf --glob dist lib bundleAnalysis \"**/*.tsbuildinfo\" \"**/*.build.log\"",
"eslint": "eslint --format stylish src",
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
"explore:tree": "npm run build && npm run webpack && source-map-explorer ./dist/sharedTree.js --html bundleAnalysis/reportTree.html",
"format": "npm run format:biome",
"format:biome": "biome check . --write",
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
Expand Down Expand Up @@ -59,6 +60,7 @@
"prettier": "~3.0.3",
"puppeteer": "^23.6.0",
"rimraf": "^4.4.0",
"source-map-explorer": "^2.5.3",
"source-map-loader": "^5.0.0",
"string-replace-loader": "^3.1.0",
"ts-loader": "^9.5.1",
Expand Down
44 changes: 44 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3dbf023

Please sign in to comment.