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

新增lodash模块 #679

Merged
merged 2 commits into from
Sep 30, 2023
Merged

新增lodash模块 #679

merged 2 commits into from
Sep 30, 2023

Conversation

aiselp
Copy link
Contributor

@aiselp aiselp commented Sep 27, 2023

No description provided.

@aiselp
Copy link
Contributor Author

aiselp commented Sep 27, 2023

由于其他内置模块有使用lodash,会导致即使不使用改模块,也会加载lodash,而完整版的lodash加载速度要稍慢0.1秒,解决方法有两个,

  • 把所有内置模块对require('lodash.js')的引用改为require('lodash/core')
  • 优化模块加载系统,目前的模块加载器还存在require('lodash.js') !== require('lodash')的问题

后续会针对这两个问题优化

@kkevsekk1 kkevsekk1 merged commit a5b89ac into kkevsekk1:dev-test Sep 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants