Skip to content

Commit

Permalink
fix: don't remove touch directive when directives.default doesn't exist
Browse files Browse the repository at this point in the history
fixes #130
  • Loading branch information
KaelWD committed May 26, 2020
1 parent a458093 commit e353643
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/matcher/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Module._load = function _load (request, parent) {
}

const directives = Object.keys(require('vuetify/es5/directives'))
.filter(val => !['ClickOutside', 'default'].includes(val))

const dir = dirname(require.resolve('vuetify/es5/components'))

Expand All @@ -27,9 +28,6 @@ readdirSync(dir).forEach(group => {
}
})

directives.splice(directives.indexOf('ClickOutside'), 1)
directives.splice(directives.indexOf('default'), 1)

Module._load = originalLoader

module.exports = {
Expand Down

0 comments on commit e353643

Please sign in to comment.