You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone the repository and install npm dependencies:
git clone https://github.com/Loilo/vue-loader-15-include-repro.git
cd vue-loader-15-include-repro
npm install
Run webpack:
npx webpack
What is expected?
The VueLoaderPlugin should initialize correctly.
What is actually happening?
The VueLoaderPlugin complains that "no matching rule for vue files are found".
I've dug into the source and found the cause: The check if a loader is matching foo.vue returns false if the rule has an include property. This is correct for webpack's own behaviour but probably undesirable for vue-loader.
A sufficient solution would probably be to (locally) remove the include property before normalizing rules. I'd be happy to attach a PR for this. I have attached a PR for this.
The text was updated successfully, but these errors were encountered:
Version
15.0.0-beta.2
Reproduction link
https://github.com/Loilo/vue-loader-15-include-repro
Steps to reproduce
Clone the repository and install npm dependencies:
Run webpack:
What is expected?
The
VueLoaderPlugin
should initialize correctly.What is actually happening?
The
VueLoaderPlugin
complains that "no matching rule for vue files are found".I've dug into the source and found the cause: The check if a loader is matching
foo.vue
returnsfalse
if the rule has aninclude
property. This is correct for webpack's own behaviour but probably undesirable forvue-loader
.A sufficient solution would probably be to (locally) remove the
include
property before normalizing rules.I'd be happy to attach a PR for this.I have attached a PR for this.The text was updated successfully, but these errors were encountered: