diff options
author | eric thul <thul.eric@gmail.com> | 2016-11-19 12:26:58 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2016-11-19 12:45:11 -0500 |
commit | df05d7e1e854b318fc74f33ca701ed521fd3a5ce (patch) | |
tree | f2e021214de4cd17270a07e60bd2af0592af9882 /src/Psc.js | |
parent | 2d52ea7e4b77a3ea5a8574ca245f51738d22d4a0 (diff) | |
download | purs-loader-df05d7e1e854b318fc74f33ca701ed521fd3a5ce.tar.gz purs-loader-df05d7e1e854b318fc74f33ca701ed521fd3a5ce.tar.zst purs-loader-df05d7e1e854b318fc74f33ca701ed521fd3a5ce.zip |
Always resolve on psc-ide rebuild failure
The objective of enabling psc-ide is to obtain feedback immediately from
the PureScript compiler. When the loader triggers an error to webpack,
the bundle is invalidated and dependencies of the PureScript file that
caused the error will be passed through the loader on the next
successful rebuild.
However, this behaviour adds time to the feedback loop. In order to
reduce the time of the PureScript compiler feedback loop when in
development, this commit always resolves the rebuild process with a
success. Errors and warnings are still emitted, but the webpack bundle
is not invalidated. This means that the loader will only be run for the
current file being editted and the developer gets immediate feedback on
success or failure when psc-ide is enabled.
Resolves #76
Diffstat (limited to 'src/Psc.js')
0 files changed, 0 insertions, 0 deletions