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

webpack打包Vue模块,为什么没有打包package.json文件中的main属性映射的文件。 #13

Open
workkk98 opened this issue Oct 27, 2020 · 2 comments

Comments

@workkk98
Copy link
Owner

问题分析:
在某次debugger调试过程中,我将main映射的文件,也就是dist/vue.runtime.common.js这个文件。增加了一些debugger语句,但实际上打印出来的文件并不携带。

我一开始以为是某个loader处理掉了debugger语句,但实际上不是。

@workkk98
Copy link
Owner Author

@workkk98
Copy link
Owner Author

👆上面的链接解释的很清楚,模块package.json文件中的入口文件优先级是不同。module字段会优先于main字段。

@workkk98 workkk98 reopened this Oct 27, 2020
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