Skip to content

Commit

Permalink
fix: ensure passing transform args
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Oct 29, 2019
1 parent 7f52275 commit 5759dc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/transform-middleware/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = function transformFiles(userArgv) {
...(userArgv.babel || {}),
});
const transform = {
...userArgv.transform,
include: (userArgv.transform && userArgv.transform.include) || [],
exclude: [
...((userArgv.transform && userArgv.transform.exclude) || []),
Expand Down

0 comments on commit 5759dc6

Please sign in to comment.