File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
1212
1313``` js
1414// webpack.config.js
15- const { VueLoaderPlugin } = require (' vue-loader' )
15+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
1616
1717module .exports = {
1818 module: {
@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
3838``` js
3939// webpack.config.js
4040const path = require (' path' )
41- const { VueLoaderPlugin } = require (' vue-loader' )
41+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
4242
4343module .exports = {
4444 mode: ' development' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
1717
1818``` js
1919// webpack.config.js
20- const { VueLoaderPlugin } = require (' vue-loader' )
20+ const VueLoaderPlugin = require (' vue-loader/lib/plugin ' )
2121
2222module .exports = {
2323 // ...
You can’t perform that action at this time.
0 commit comments