Skip to content

Commit 23d44c6

Browse files
authored
feat: add bundle analyzing script (#22)
1 parent e0eed2f commit 23d44c6

File tree

3 files changed

+265
-3
lines changed

3 files changed

+265
-3
lines changed

package-lock.json

Lines changed: 261 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dist",
1313
"src"
1414
],
15-
"author": "Lukas Hudec <hudec.luke@gamil.com>",
15+
"author": "Lukas Hudec <hudec.luke@gmail.com>",
1616
"scripts": {
1717
"dev": "tsdx watch",
1818
"build": "tsdx build",
@@ -26,7 +26,8 @@
2626
"test:watch": "tsdx test --watch --verbose --env=jest-environment-jsdom-sixteen",
2727
"test:coverage": "tsdx test --coverage --env=jest-environment-jsdom-sixteen",
2828
"storybook": "start-storybook -p 6006",
29-
"build-storybook": "build-storybook"
29+
"build-storybook": "build-storybook",
30+
"analyze:bundle": "source-map-explorer dist/*.js"
3031
},
3132
"peerDependencies": {
3233
"react": ">=16"
@@ -63,6 +64,7 @@
6364
"react-docgen-typescript-loader": "^3.7.2",
6465
"react-dom": "^16.13.1",
6566
"react-is": "^16.13.1",
67+
"source-map-explorer": "^2.4.2",
6668
"ts-loader": "^8.0.0",
6769
"tsdx": "^0.13.2",
6870
"tslib": "^2.0.0",

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"moduleResolution": "node",
1616
"baseUrl": "./",
1717
"paths": {
18-
"@": ["./"],
1918
"*": ["src/*", "node_modules/*"]
2019
},
2120
"jsx": "react",

0 commit comments

Comments
 (0)