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

微信小程序 import * as sentry from "sentry-mina"全量引入,导致文件过大 #10

Closed
Roat opened this issue Aug 19, 2019 · 1 comment

Comments

@Roat
Copy link

Roat commented Aug 19, 2019

微信小程序全量引入sentry-mina,会额外增加900多k,导致文件过大,有没有局部引入的方式,比如按需引用,或者在其他项目中全量导入时是如何解决文件过大问题呢?

@alexayan
Copy link
Owner

alexayan commented Aug 19, 2019

https://github.com/alexayan/sentry-mina/blob/master/browser/sentry-mina.js
打包后的尺寸最多不超过 100 K,虽然还有优化的空间,但不会有 900K 这么多

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

No branches or pull requests

2 participants