Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite 打包大小异常 #264

Closed
5 tasks done
greenhat616 opened this issue Jan 14, 2024 · 0 comments
Closed
5 tasks done

Vite 打包大小异常 #264

greenhat616 opened this issue Jan 14, 2024 · 0 comments
Labels
C: UI T: Bug Something isn't working

Comments

@greenhat616
Copy link
Collaborator

greenhat616 commented Jan 14, 2024

复现步骤 / Step to reproduce

pnpm web:build

预期行为 / Expected behaviour

不应该携带多余语言文件.
image

实际行为 / Actual Behaviour

image

应用日志 / App logs

No response

备注 / Addition details

只有两个依赖会引入巨多的语言包

  • monaco editor
  • shikiji

需要排查.

如果是 Shikiji 的问题的话,只需要使用 https://shikiji.netlify.app/guide/install#fine-grained-bundle 即可
如果是 monaco editor 导致的话就比较麻烦,可能需要重写 vite 插件做兼容性更新

Clash Nyapasu 版本号 / Clash Nyapasu

1.4.2 - latest

是否为 Pre-release / Is pre-release version

all

操作系统及版本 / OS version

all

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR ,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已仔细查看并知情 Q&A 中的内容 / You have checked Q&A carefully
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: UI T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant