diff options
author | Cyril Sobierajewicz <38043722+cyrilfretlink@users.noreply.github.com> | 2019-05-24 14:46:35 +0200 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2019-05-24 08:46:35 -0400 |
commit | 1cdd37e8b40999c91233a8cc9e0b3ab278b5a219 (patch) | |
tree | b2ec80939cb086f00ee3055482d33c9859fcdad4 /yarn.lock | |
parent | f5a2abb1da6068203698255c123f097979443b6b (diff) | |
download | purs-loader-1cdd37e8b40999c91233a8cc9e0b3ab278b5a219.tar.gz purs-loader-1cdd37e8b40999c91233a8cc9e0b3ab278b5a219.tar.zst purs-loader-1cdd37e8b40999c91233a8cc9e0b3ab278b5a219.zip |
Don’t unnecessarily invalidate the module map (#124)
* Don’t unnecessarily invalidate the module map
Additional imports in PureScript sources (compared to their JavaScript output) shouldn’t always invalidate the module map because imports of types are erased and re-exports are followed.
Also `Prim.*` modules are internal to the compiler and won’t ever be present in the module map.
* Don’t add imports to unused modules
Otherwise the following expression
```purs
hello :: Effect Unit
hello = log "Hello"
```
includes the whole `Prelude` into its chunk whereas only `log` is actually needed at runtime.
Diffstat (limited to 'yarn.lock')
0 files changed, 0 insertions, 0 deletions