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

支持 ignore 参数 #11

Open
sorrycc opened this issue Nov 19, 2014 · 0 comments
Open

支持 ignore 参数 #11

sorrycc opened this issue Nov 19, 2014 · 0 comments
Assignees

Comments

@sorrycc
Copy link
Member

sorrycc commented Nov 19, 2014

场景举例:

  1. 页面上引入两个 js,jquery.js 和 index.js (jquery 是用 umd 打包的,index 是首页脚本)
  2. 构建方式是 --include standalone --ignore jquery

问题:

现在没有处理 ignore,index.js 如果 require jquery 的话,还是会去 spm_modules 下找。这样会有两个问题:

  1. jquery 被载了两遍
  2. 依赖的 jquery 和最终上线的不是同一个,潜在风险
@sorrycc sorrycc self-assigned this Nov 19, 2014
@sorrycc sorrycc mentioned this issue Nov 19, 2014
9 tasks
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

1 participant