Skip to content

Commit

Permalink
Merge pull request #2 from cayter/patch-1
Browse files Browse the repository at this point in the history
fix: transformer not working with custom NodeJS path
  • Loading branch information
mihar-22 committed Mar 5, 2020
2 parents 49d9592 + a973f8f commit 44250b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const transformer = (options = {}) => (source, filename) => {
if (preprocess) {
const preprocessor = require.resolve('./preprocess.js')
processed = execSync(`node ${preprocessor}`, {
env: { source, filename }
env: { PATH: process.env.PATH, source, filename }
}).toString()
}

Expand Down

0 comments on commit 44250b2

Please sign in to comment.