Skip to content

Commit

Permalink
fix: remove all the crazy bundled files (#2183)
Browse files Browse the repository at this point in the history
Downgrade `codemirror-json-schema` to fix the massive bundle size based
on the comments
[here](jsonnext/codemirror-json-schema#125).
After downgrading this is the new bundled output:

```sh
> tsc && vite build

vite v4.5.3 building for production...
✓ 1481 modules transformed.
dist/index.html                       0.65 kB │ gzip:   0.41 kB
dist/assets/favicon-2732bf7e.ico     15.41 kB
dist/assets/index-1905dbdc.css       52.20 kB │ gzip:   9.56 kB
dist/assets/index-5b44d2c3.js     1,662.44 kB │ gzip: 526.12 kB
```

Thanks @mistermoe for searching github issues with me! :)

Co-authored-by: Moe Jangda <[email protected]>
  • Loading branch information
wesbillman and mistermoe authored Jul 29, 2024
1 parent c419313 commit d0f1370
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 91 deletions.
101 changes: 11 additions & 90 deletions frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@uiw/codemirror-theme-atomone": "^4.22.0",
"@uiw/codemirror-theme-github": "^4.22.0",
"@vitejs/plugin-react": "^4.0.4",
"codemirror-json-schema": "^0.7.1",
"codemirror-json-schema": "0.7.0",
"codemirror-json5": "^1.0.3",
"fnv1a": "^1.1.1",
"highlight.js": "^11.8.0",
Expand Down

0 comments on commit d0f1370

Please sign in to comment.