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

Let vm-loader generate index.js for those modules do not have it, in local mode #3

Open
shenfe opened this issue Dec 16, 2017 · 1 comment

Comments

@shenfe
Copy link
Owner

shenfe commented Dec 16, 2017

As title says.

@shenfe
Copy link
Owner Author

shenfe commented Dec 16, 2017

模块的js在被webpack加载时,local模式需要被嵌入代码,所以对于无js的模块,加载html时要和模块的js一样判断是local模式然后嵌入相同代码,这个过程vm-loader和index-loader是重复的。目前权衡的结果是,不在vm-loader中加入这个过程,希望模块开发者能保证给模块有一个index.js。

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

1 participant