airyland / vux-loader

hack into vue-loader
64 stars 38 forks source link

bug fix: Each "*.vue" file is loaded twice in runtime. The root reaso… #79

Open stuartZhang opened 5 years ago

stuartZhang commented 5 years ago

bug fix: Each "*.vue" file is loaded twice in runtime. The root reason is that the same ".vue" file is referenced twice with different ref path.

As you see, there are two ref paths for the identical "*.vue" file (e.g. ./src/components/VuxDemo.vue). What's worse, there are two fragments "!./node_modules/vux-loader/src/script-loader.js" in the first one, which is erroneous and brings about the module-cache failure.

My change fixes it.

stuartZhang commented 5 years ago

The usage environment of my project: