index.js 956 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. const defineExport = (name, fn) => {
  6. let value;
  7. Object.defineProperty(exports, name, {
  8. get: () => {
  9. if (fn !== undefined) {
  10. value = fn();
  11. fn = undefined;
  12. }
  13. return value;
  14. },
  15. configurable: true
  16. });
  17. };
  18. defineExport("Source", () => require("./Source"));
  19. defineExport("RawSource", () => require("./RawSource"));
  20. defineExport("OriginalSource", () => require("./OriginalSource"));
  21. defineExport("SourceMapSource", () => require("./SourceMapSource"));
  22. defineExport("CachedSource", () => require("./CachedSource"));
  23. defineExport("ConcatSource", () => require("./ConcatSource"));
  24. defineExport("ReplaceSource", () => require("./ReplaceSource"));
  25. defineExport("PrefixSource", () => require("./PrefixSource"));
  26. defineExport("SizeOnlySource", () => require("./SizeOnlySource"));
  27. defineExport("CompatSource", () => require("./CompatSource"));