main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
956 bytes
|
Line | |
---|
1 | /*
|
---|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
3 | Author Tobias Koppers @sokra
|
---|
4 | */
|
---|
5 |
|
---|
6 | const defineExport = (name, fn) => {
|
---|
7 | let value;
|
---|
8 | Object.defineProperty(exports, name, {
|
---|
9 | get: () => {
|
---|
10 | if (fn !== undefined) {
|
---|
11 | value = fn();
|
---|
12 | fn = undefined;
|
---|
13 | }
|
---|
14 | return value;
|
---|
15 | },
|
---|
16 | configurable: true
|
---|
17 | });
|
---|
18 | };
|
---|
19 |
|
---|
20 | defineExport("Source", () => require("./Source"));
|
---|
21 |
|
---|
22 | defineExport("RawSource", () => require("./RawSource"));
|
---|
23 | defineExport("OriginalSource", () => require("./OriginalSource"));
|
---|
24 | defineExport("SourceMapSource", () => require("./SourceMapSource"));
|
---|
25 | defineExport("CachedSource", () => require("./CachedSource"));
|
---|
26 | defineExport("ConcatSource", () => require("./ConcatSource"));
|
---|
27 | defineExport("ReplaceSource", () => require("./ReplaceSource"));
|
---|
28 | defineExport("PrefixSource", () => require("./PrefixSource"));
|
---|
29 | defineExport("SizeOnlySource", () => require("./SizeOnlySource"));
|
---|
30 | defineExport("CompatSource", () => require("./CompatSource"));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.