### Version 15.4.0 ### Reproduction link [https://www.npmjs.com/package/vue-loader/v/15.4.2](https://www.npmjs.com/package/vue-loader/v/15.4.2) ### Steps to reproduce Init a project without installing webpack locally , and run global `webpack` in terminal ### What is expected? webpack build successfully ### What is actually happening? Error: Cannot find module 'webpack/lib/RuleSet' --- Due to line 2 in `node_modules/vue-loader/lib/plugin.js` ```js const RuleSet = require('webpack/lib/RuleSet') ``` <!-- generated by vue-issues. DO NOT REMOVE -->