File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11const fs = require ( "fs" ) ;
22const crypto = require ( "crypto" ) ;
33const crossSpawn = require ( "cross-spawn" ) ;
4+ const path = require ( "path" ) ;
45const stripIndent = require ( "common-tags/lib/stripIndent" ) ;
56const THIS_FILE = fs . readFileSync ( __filename ) ;
67
@@ -59,11 +60,11 @@ module.exports = {
5960 // but postcss is async. So we spawn a sync process to do an sync
6061 // transformation!
6162 // https://twitter.com/kentcdodds/status/1043194634338324480
62- const postcssRunner = ` ${ __dirname } / postcss-runner.js` ;
63+ const postcssRunner = JSON . stringify ( path . join ( __dirname , " postcss-runner.js" ) ) ;
6364 const result = crossSpawn . sync ( "node" , [
6465 "-e" ,
6566 stripIndent `
66- require(" ${ postcssRunner } " )(
67+ require(${ postcssRunner } )(
6768 ${ JSON . stringify ( {
6869 src,
6970 filename,
You can’t perform that action at this time.
0 commit comments