diff options
Diffstat (limited to 'src/Psc.js')
-rw-r--r-- | src/Psc.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -45,7 +45,12 @@ function compile(psModule) { | |||
45 | if (errorMessage.length) { | 45 | if (errorMessage.length) { |
46 | psModule.emitError(errorMessage); | 46 | psModule.emitError(errorMessage); |
47 | } | 47 | } |
48 | reject(new Error('compilation failed')) | 48 | if (options.watch) { |
49 | resolve(psModule); | ||
50 | } | ||
51 | else { | ||
52 | reject(new Error('compilation failed')) | ||
53 | } | ||
49 | } else { | 54 | } else { |
50 | const warningMessage = stderr.join(''); | 55 | const warningMessage = stderr.join(''); |
51 | if (options.warnings && warningMessage.length) { | 56 | if (options.warnings && warningMessage.length) { |