Skip to content

Commit

Permalink
fix(transform-middleware): use correct userArgv for transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Mar 29, 2019
1 parent 20f1c5d commit 18b1681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transform-middleware/src/index.js
Expand Up @@ -14,9 +14,9 @@ module.exports = function transformFiles(userArgv) {
...(userArgv.babel || {}),
});
const transform = {
include: userArgv.include || [],
include: (userArgv.transform && userArgv.transform.include) || [],
exclude: [
...(userArgv.exclude || []),
...((userArgv.transform && userArgv.transform.exclude) || []),
...DEFAULT_TRANSFORM_EXCLUDE_PATTERN,
],
};
Expand Down

0 comments on commit 18b1681

Please sign in to comment.