Skip to content

Commit

Permalink
feat: wc entry accepts multiple file patterns splited by ',' (#3886)
Browse files Browse the repository at this point in the history
  • Loading branch information
manico committed Mar 21, 2020
1 parent e5449ad commit db64c5b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -15,7 +15,7 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
const isAsync = /async/.test(target)

// generate dynamic entry based on glob files
const resolvedFiles = require('globby').sync([entry], { cwd: api.resolve('.') })
const resolvedFiles = require('globby').sync(entry.split(','), { cwd: api.resolve('.') })

if (!resolvedFiles.length) {
abort(`entry pattern "${entry}" did not match any files.`)
Expand Down

0 comments on commit db64c5b

Please sign in to comment.