Closed TrixterTheTux closed 3 years ago
Thanks for investigating.
Here's my proposed solution:
- if (!glob.endsWith('*') && !/\.[tj]sx?/.test(glob)) {
+ if (!glob.split('/').pop().includes('*')) {
Basically, if the last path component is not a glob, append /**
.
Can you open a PR with that change? ^^
Seems that it is impossible to allow inclusions from specific file extensions (e.g. .vue) with the tsconfig's
included
parameter due to the following line here as it converts any custom extension glob into a one that will always match directories only, e.g../src/**/*.vue
will convert to./src/**/*.vue/**
Version: 3.3.10 (previously tested 3.2.1 where it worked as intended) The plugin is initialized like this: