Skip to content

Commit

Permalink
fix: error when path to preprocessor contains some characters like '&'
Browse files Browse the repository at this point in the history
  • Loading branch information
ladeiko authored and mihar-22 committed Aug 31, 2020
1 parent 674b701 commit 00e61d8
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 @@ -12,7 +12,7 @@ const transformer = (options = {}) => (source, filename) => {

if (preprocess) {
const preprocessor = require.resolve('./preprocess.js')
processed = execSync(`node --unhandled-rejections=strict --abort-on-uncaught-exception ${preprocessor}`, {
processed = execSync(`node --unhandled-rejections=strict --abort-on-uncaught-exception '${preprocessor}'`, {
env: { PATH: process.env.PATH, source, filename, svelteConfig }
}).toString()
}
Expand Down

0 comments on commit 00e61d8

Please sign in to comment.