virtual-dependency-loader
Take a single file, process pieces of that file as "dependencies" in loader chain. This is traditionally leveraged inside of other loaders.
Usage
Inside of another loader implementation
loader.js
;; { const normalSource virtualizedSource = source; const loadModule resourcePath async = this; const callback = async; const dummyFilePath = path; const inlineLoaderOptions = queryString; const resource = const virtualizedSourceProcessedByOtherLoaders = ;};
file-that-was-ran-through-loader.js
var hello = "hello"; /* __virtual_dependency__ */ { thisfoo = foo; }; { console; } const baz = hello;