Skip to content

Commit

Permalink
fix: monaco chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 15, 2022
1 parent 5701830 commit c9b4838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "veact-admin",
"version": "1.5.0",
"version": "1.5.1",
"author": "Surmon",
"license": "MIT",
"repository": {
Expand Down
4 changes: 1 addition & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const config: UserConfig = {
output: {
manualChunks(id) {
const incs = (ds: string[]) => ds.some((d) => id.includes(`node_modules/${d}`))
if (incs(['monaco-editor/esm/vs/basic-languages'])) {
return 'monaco-editor-languages'
} else if (incs(['monaco-editor'])) {
if (incs(['monaco-editor'])) {
return 'monaco-editor'
} else if (incs(['@ant-design', 'ant'])) {
return 'antd'
Expand Down

0 comments on commit c9b4838

Please sign in to comment.