Reworks inlining so resources are loaded lazily.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 26 Dec 2016 11:42:08 +0000 (12:42 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 26 Dec 2016 12:01:14 +0000 (13:01 +0100)
commit426127a2fee17d3e4553074d60cee68ee0fa5a41
treecc9f15e090afa99bbd8ae77c4868d7e3a44e5fe0
parent330682e64d769473271032da84d652cf886b6694
Reworks inlining so resources are loaded lazily.

Why:

* when using a hash as an input, the sources it references
  should be processed lazily instead of a whole hash being
  serialized & tokenized eagerly.

This change addresses the need by:

* See #791 - in-memory imports require such lazy processing.
  The other way, we end up with duplicated rules, and have to rely
  on advanced processing to remove them.
lib/reader/is-already-loaded.js [deleted file]
lib/reader/read-sources.js
test/module-test.js