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

预编译中, externals 没有进行版本号的校验,导致出现问题。 #665

Open
nanianlisao opened this issue Jun 15, 2023 · 1 comment

Comments

@nanianlisao
Copy link
Contributor

处理 externals 的时候, 直接暴力引入,缺少校验版本号的过程。

依旧 以 terser 举例。 terser 内部依赖了 "acorn": "^8.8.2", 当我本身项目的 dependencies 安装了 "acorn": "1.0.0", 此时预编译 terser 时, 会将 acorn 进行 external 处理。 但是, 1.0 和 8.8的版本差异会导致出错。 因此建议添加 semver 校验版本号 这个过程。

@PeachScript
Copy link
Member

有解法欢迎直接提 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants