@atlaspack/core 2.12.1-dev.3443 → 2.12.1-dev.3460

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/AssetGraph.js +5 -1
  2. package/lib/Atlaspack.js +2 -2
  3. package/lib/Dependency.js +1 -1
  4. package/lib/PackagerRunner.js +45 -3
  5. package/lib/SymbolPropagation.js +25 -36
  6. package/lib/assetUtils.js +1 -1
  7. package/lib/atlaspack-v3/fs.js +31 -29
  8. package/lib/atlaspack-v3/index.js +2 -2
  9. package/lib/atlaspack-v3/jsCallable.js +9 -4
  10. package/lib/atlaspack-v3/worker/compat/asset-symbols.js +192 -0
  11. package/lib/atlaspack-v3/worker/compat/bitflags.js +84 -0
  12. package/lib/atlaspack-v3/worker/compat/dependency.js +44 -0
  13. package/lib/atlaspack-v3/worker/compat/environment.js +68 -0
  14. package/lib/atlaspack-v3/worker/compat/index.js +104 -0
  15. package/lib/atlaspack-v3/worker/compat/mutable-asset.js +144 -0
  16. package/lib/atlaspack-v3/worker/compat/plugin-config.js +58 -0
  17. package/lib/atlaspack-v3/worker/compat/plugin-logger.js +29 -0
  18. package/lib/atlaspack-v3/worker/compat/plugin-options.js +113 -0
  19. package/lib/atlaspack-v3/worker/compat/plugin-tracer.js +12 -0
  20. package/lib/atlaspack-v3/worker/compat/target.js +17 -0
  21. package/lib/atlaspack-v3/worker/worker.js +162 -83
  22. package/lib/projectPath.js +12 -4
  23. package/lib/requests/ConfigRequest.js +1 -1
  24. package/lib/requests/WriteBundleRequest.js +15 -15
  25. package/package.json +23 -16
  26. package/src/AssetGraph.js +15 -13
  27. package/src/Atlaspack.js +5 -6
  28. package/src/AtlaspackConfig.js +11 -9
  29. package/src/AtlaspackConfig.schema.js +1 -1
  30. package/src/BundleGraph.js +83 -79
  31. package/src/CommittedAsset.js +1 -1
  32. package/src/Dependency.js +1 -1
  33. package/src/PackagerRunner.js +56 -8
  34. package/src/ReporterRunner.js +4 -4
  35. package/src/RequestTracker.js +18 -18
  36. package/src/SymbolPropagation.js +40 -52
  37. package/src/Transformation.js +12 -12
  38. package/src/UncommittedAsset.js +2 -2
  39. package/src/Validation.js +5 -5
  40. package/src/applyRuntimes.js +2 -2
  41. package/src/assetUtils.js +1 -1
  42. package/src/atlaspack-v3/AtlaspackV3.js +1 -1
  43. package/src/atlaspack-v3/fs.js +39 -25
  44. package/src/atlaspack-v3/index.js +1 -1
  45. package/src/atlaspack-v3/jsCallable.js +11 -10
  46. package/src/atlaspack-v3/worker/compat/asset-symbols.js +225 -0
  47. package/src/atlaspack-v3/worker/compat/bitflags.js +100 -0
  48. package/src/atlaspack-v3/worker/compat/dependency.js +83 -0
  49. package/src/atlaspack-v3/worker/compat/environment.js +92 -0
  50. package/src/atlaspack-v3/worker/compat/index.js +10 -0
  51. package/src/atlaspack-v3/worker/compat/mutable-asset.js +184 -0
  52. package/src/atlaspack-v3/worker/compat/plugin-config.js +94 -0
  53. package/src/atlaspack-v3/worker/compat/plugin-logger.js +47 -0
  54. package/src/atlaspack-v3/worker/compat/plugin-options.js +137 -0
  55. package/src/atlaspack-v3/worker/compat/plugin-tracer.js +11 -0
  56. package/src/atlaspack-v3/worker/compat/target.js +27 -0
  57. package/src/atlaspack-v3/worker/worker.js +218 -113
  58. package/src/dumpGraphToGraphViz.js +1 -1
  59. package/src/loadDotEnv.js +1 -1
  60. package/src/projectPath.js +12 -4
  61. package/src/public/Asset.js +1 -1
  62. package/src/public/Bundle.js +3 -3
  63. package/src/public/BundleGraph.js +20 -20
  64. package/src/public/Config.js +1 -1
  65. package/src/public/MutableBundleGraph.js +8 -8
  66. package/src/requests/AssetGraphRequest.js +10 -10
  67. package/src/requests/AssetGraphRequestRust.js +3 -3
  68. package/src/requests/AssetRequest.js +3 -3
  69. package/src/requests/AtlaspackConfigRequest.js +5 -3
  70. package/src/requests/BundleGraphRequest.js +6 -6
  71. package/src/requests/ConfigRequest.js +5 -5
  72. package/src/requests/DevDepRequest.js +7 -7
  73. package/src/requests/EntryRequest.js +2 -2
  74. package/src/requests/TargetRequest.js +9 -8
  75. package/src/requests/ValidationRequest.js +2 -2
  76. package/src/requests/WriteBundleRequest.js +26 -20
  77. package/src/requests/WriteBundlesRequest.js +6 -6
  78. package/src/requests/asset-graph-diff.js +4 -4
  79. package/src/resolveOptions.js +3 -3
  80. package/src/serializer.js +2 -2
  81. package/src/serializerCore.browser.js +3 -2
  82. package/src/serializerCore.js +2 -2
  83. package/src/utils.js +2 -2
  84. package/test/AtlaspackConfigRequest.test.js +1 -1
  85. package/test/BundleGraph.test.js +3 -3
  86. package/test/Dependency.test.js +28 -0
  87. package/test/PublicMutableBundleGraph.test.js +2 -2
  88. package/test/RequestTracker.test.js +7 -6
  89. package/test/SymbolPropagation.test.js +9 -9
  90. package/test/requests/ConfigRequest.test.js +3 -6
  91. package/test/utils.test.js +1 -1
  92. package/lib/atlaspack-v3/worker/compat.js +0 -57
  93. package/src/atlaspack-v3/worker/compat.js +0 -82
  94. package/test/requests/WriteBundleRequest.test.js +0 -132
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Environment = void 0;
7
+ class Environment {
8
+ constructor(inner) {
9
+ // TODO
10
+ this.id = '';
11
+ this.includeNodeModules = inner.includeNodeModules;
12
+ // $FlowFixMe
13
+ this.context = inner.context;
14
+ this.engines = inner.engines;
15
+ // $FlowFixMe
16
+ this.outputFormat = inner.outputFormat;
17
+ // $FlowFixMe
18
+ this.sourceType = inner.sourceType;
19
+ this.isLibrary = inner.isLibrary;
20
+ this.shouldOptimize = inner.shouldOptimize;
21
+ this.shouldScopeHoist = inner.shouldScopeHoist;
22
+ this.sourceMap = inner.sourceMap;
23
+ this.loc = inner.loc;
24
+ }
25
+
26
+ // TODO
27
+ isBrowser() {
28
+ return true;
29
+ }
30
+
31
+ // TODO
32
+ isNode() {
33
+ return false;
34
+ }
35
+
36
+ // TODO
37
+ isElectron() {
38
+ return false;
39
+ }
40
+
41
+ // TODO
42
+ isWorker() {
43
+ return false;
44
+ }
45
+
46
+ // TODO
47
+ isWorklet() {
48
+ return false;
49
+ }
50
+
51
+ // TODO
52
+ isIsolated() {
53
+ return false;
54
+ }
55
+
56
+ // TODO
57
+ // eslint-disable-next-line no-unused-vars
58
+ matchesEngines() {
59
+ return true;
60
+ }
61
+
62
+ // TODO
63
+ // eslint-disable-next-line no-unused-vars
64
+ supports() {
65
+ return true;
66
+ }
67
+ }
68
+ exports.Environment = Environment;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _bitflags = require("./bitflags");
7
+ Object.keys(_bitflags).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _bitflags[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _bitflags[key];
14
+ }
15
+ });
16
+ });
17
+ var _dependency = require("./dependency");
18
+ Object.keys(_dependency).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _dependency[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _dependency[key];
25
+ }
26
+ });
27
+ });
28
+ var _environment = require("./environment");
29
+ Object.keys(_environment).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _environment[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _environment[key];
36
+ }
37
+ });
38
+ });
39
+ var _target = require("./target");
40
+ Object.keys(_target).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _target[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _target[key];
47
+ }
48
+ });
49
+ });
50
+ var _pluginConfig = require("./plugin-config");
51
+ Object.keys(_pluginConfig).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _pluginConfig[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _pluginConfig[key];
58
+ }
59
+ });
60
+ });
61
+ var _pluginTracer = require("./plugin-tracer");
62
+ Object.keys(_pluginTracer).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _pluginTracer[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _pluginTracer[key];
69
+ }
70
+ });
71
+ });
72
+ var _pluginLogger = require("./plugin-logger");
73
+ Object.keys(_pluginLogger).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _pluginLogger[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _pluginLogger[key];
80
+ }
81
+ });
82
+ });
83
+ var _pluginOptions = require("./plugin-options");
84
+ Object.keys(_pluginOptions).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _pluginOptions[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function () {
90
+ return _pluginOptions[key];
91
+ }
92
+ });
93
+ });
94
+ var _mutableAsset = require("./mutable-asset");
95
+ Object.keys(_mutableAsset).forEach(function (key) {
96
+ if (key === "default" || key === "__esModule") return;
97
+ if (key in exports && exports[key] === _mutableAsset[key]) return;
98
+ Object.defineProperty(exports, key, {
99
+ enumerable: true,
100
+ get: function () {
101
+ return _mutableAsset[key];
102
+ }
103
+ });
104
+ });
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MutableAsset = void 0;
7
+ function _stream() {
8
+ const data = require("stream");
9
+ _stream = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ var _bitflags = require("./bitflags");
15
+ var _assetSymbols = require("./asset-symbols");
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ class MutableAsset {
19
+ #inner;
20
+ #ast;
21
+ #contents;
22
+ get astGenerator() {
23
+ throw new Error('get MutableAsset.astGenerator');
24
+ }
25
+ set astGenerator(value) {
26
+ throw new Error('set MutableAsset.astGenerator');
27
+ }
28
+ constructor(asset, fs, env) {
29
+ this.#inner = asset;
30
+ this.stats = asset.stats;
31
+ this.id = asset.id;
32
+ this.filePath = asset.filePath;
33
+ this.type;
34
+ this.symbols = new _assetSymbols.MutableAssetSymbols(asset.symbols);
35
+ this.stats = asset.stats;
36
+ this.id = asset.id;
37
+ this.filePath = asset.filePath;
38
+ this.type = asset.type;
39
+ this.query = new URLSearchParams(asset.query);
40
+ this.isSource = asset.isSource;
41
+ this.meta = asset.meta;
42
+ this.bundleBehavior = _bitflags.bundleBehaviorMap.fromNullable(asset.bundleBehavior);
43
+ this.isBundleSplittable = asset.isBundleSplittable;
44
+ this.sideEffects = asset.sideEffects;
45
+ this.uniqueKey = asset.uniqueKey;
46
+ this.pipeline = asset.pipeline;
47
+ this.#contents = Buffer.from(asset.code);
48
+ this.fs = fs;
49
+ this.env = env;
50
+ }
51
+
52
+ // eslint-disable-next-line require-await
53
+ async getAST() {
54
+ return this.#ast;
55
+ }
56
+ setAST(ast) {
57
+ this.#ast = ast;
58
+ }
59
+ isASTDirty() {
60
+ throw new Error('MutableAsset.isASTDirty()');
61
+ }
62
+
63
+ // eslint-disable-next-line require-await
64
+ async getCode() {
65
+ return this.#contents.toString();
66
+ }
67
+ setCode(code) {
68
+ this.#contents = Buffer.from(code);
69
+ }
70
+
71
+ // eslint-disable-next-line require-await
72
+ async getBuffer() {
73
+ return this.#contents;
74
+ }
75
+ setBuffer(buf) {
76
+ this.#contents = buf;
77
+ }
78
+ getStream() {
79
+ return _stream().Readable.from(this.#contents);
80
+ }
81
+ setStream(stream) {
82
+ const data = [];
83
+ stream.on('data', chunk => {
84
+ data.push(chunk);
85
+ });
86
+ stream.on('end', () => {
87
+ this.#contents = Buffer.concat(data);
88
+ });
89
+ stream.on('error', () => {
90
+ throw new Error('MutableAsset.setStream()');
91
+ });
92
+ }
93
+ getMap() {
94
+ throw new Error('MutableAsset.getMap');
95
+ }
96
+
97
+ // eslint-disable-next-line no-unused-vars
98
+ setMap() {
99
+ throw new Error('MutableAsset.setMap()');
100
+ }
101
+ getMapBuffer() {
102
+ throw new Error('MutableAsset.getMapBuffer');
103
+ }
104
+ getDependencies() {
105
+ throw new Error('MutableAsset.getDependencies');
106
+ }
107
+
108
+ // eslint-disable-next-line no-unused-vars
109
+ addDependency() {
110
+ throw new Error('MutableAsset.addDependency()');
111
+ }
112
+
113
+ // eslint-disable-next-line no-unused-vars
114
+ addURLDependency() {
115
+ throw new Error('MutableAsset.addURLDependency()');
116
+ }
117
+
118
+ // eslint-disable-next-line no-unused-vars
119
+ setEnvironment() {
120
+ throw new Error('MutableAsset.setEnvironment()');
121
+ }
122
+
123
+ // eslint-disable-next-line no-unused-vars
124
+ invalidateOnFileChange() {
125
+ throw new Error('MutableAsset.invalidateOnFileChange()');
126
+ }
127
+
128
+ // eslint-disable-next-line no-unused-vars
129
+ invalidateOnFileCreate() {
130
+ throw new Error('MutableAsset.invalidateOnFileCreate()');
131
+ }
132
+
133
+ // eslint-disable-next-line no-unused-vars
134
+ invalidateOnEnvChange() {
135
+ throw new Error('MutableAsset.invalidateOnEnvChange()');
136
+ }
137
+ invalidateOnStartup() {
138
+ throw new Error('MutableAsset.invalidateOnStartup()');
139
+ }
140
+ invalidateOnBuild() {
141
+ throw new Error('MutableAsset.invalidateOnBuild()');
142
+ }
143
+ }
144
+ exports.MutableAsset = MutableAsset;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PluginConfig = void 0;
7
+ class PluginConfig {
8
+ constructor({
9
+ env,
10
+ isSource,
11
+ searchPath
12
+ }) {
13
+ this.env = env;
14
+ this.isSource = isSource;
15
+ this.searchPath = searchPath;
16
+ }
17
+
18
+ // eslint-disable-next-line no-unused-vars
19
+ invalidateOnFileChange() {
20
+ throw new Error('PluginOptions.invalidateOnFileChange');
21
+ }
22
+
23
+ // eslint-disable-next-line no-unused-vars
24
+ invalidateOnFileCreate() {
25
+ throw new Error('PluginOptions.invalidateOnFileCreate');
26
+ }
27
+
28
+ // eslint-disable-next-line no-unused-vars
29
+ invalidateOnEnvChange() {
30
+ throw new Error('PluginOptions.invalidateOnEnvChange');
31
+ }
32
+ invalidateOnStartup() {
33
+ throw new Error('PluginOptions.invalidateOnStartup');
34
+ }
35
+ invalidateOnBuild() {
36
+ throw new Error('PluginOptions.invalidateOnBuild');
37
+ }
38
+
39
+ // eslint-disable-next-line no-unused-vars
40
+ addDevDependency() {
41
+ throw new Error('PluginOptions.addDevDependency');
42
+ }
43
+
44
+ // eslint-disable-next-line no-unused-vars
45
+ setCacheKey() {
46
+ throw new Error('PluginOptions.setCacheKey');
47
+ }
48
+ getConfig() {
49
+ throw new Error('PluginOptions.getConfig');
50
+ }
51
+ getConfigFrom() {
52
+ throw new Error('PluginOptions.getConfigFrom');
53
+ }
54
+ getPackage() {
55
+ throw new Error('PluginOptions.getPackage');
56
+ }
57
+ }
58
+ exports.PluginConfig = PluginConfig;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PluginLogger = void 0;
7
+ class PluginLogger {
8
+ verbose(diagnostic) {
9
+ // eslint-disable-next-line no-console
10
+ console.log(diagnostic);
11
+ }
12
+ info(diagnostic) {
13
+ // eslint-disable-next-line no-console
14
+ console.info(diagnostic);
15
+ }
16
+ log(diagnostic) {
17
+ // eslint-disable-next-line no-console
18
+ console.log(diagnostic);
19
+ }
20
+ warn(diagnostic) {
21
+ // eslint-disable-next-line no-console
22
+ console.warn(diagnostic);
23
+ }
24
+ error(input) {
25
+ // eslint-disable-next-line no-console
26
+ console.error(input);
27
+ }
28
+ }
29
+ exports.PluginLogger = PluginLogger;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PluginOptions = void 0;
7
+ class PluginOptions {
8
+ #options;
9
+ get env() {
10
+ if (!('env' in this.#options)) {
11
+ return process.env;
12
+ // throw new Error('PluginOptions.env');
13
+ }
14
+
15
+ return this.#options.env;
16
+ }
17
+ get projectRoot() {
18
+ if (!('projectRoot' in this.#options)) {
19
+ throw new Error('PluginOptions.projectRoot');
20
+ }
21
+ return this.#options.projectRoot;
22
+ }
23
+ get packageManager() {
24
+ if (!('packageManager' in this.#options)) {
25
+ throw new Error('PluginOptions.packageManager');
26
+ }
27
+ return this.#options.packageManager;
28
+ }
29
+ get mode() {
30
+ if (!('mode' in this.#options)) {
31
+ throw new Error('PluginOptions.mode');
32
+ }
33
+ return this.#options.mode;
34
+ }
35
+ get parcelVersion() {
36
+ if (!('parcelVersion' in this.#options)) {
37
+ return 'UNKNOWN VERSION';
38
+ // throw new Error('PluginOptions.parcelVersion');
39
+ }
40
+
41
+ return this.#options.parcelVersion;
42
+ }
43
+ get hmrOptions() {
44
+ if (!('hmrOptions' in this.#options)) {
45
+ throw new Error('PluginOptions.hmrOptions');
46
+ }
47
+ return this.#options.hmrOptions;
48
+ }
49
+ get serveOptions() {
50
+ if (!('serveOptions' in this.#options)) {
51
+ throw new Error('PluginOptions.serveOptions');
52
+ }
53
+ return this.#options.serveOptions;
54
+ }
55
+ get shouldBuildLazily() {
56
+ if (!('shouldBuildLazily' in this.#options)) {
57
+ throw new Error('PluginOptions.shouldBuildLazily');
58
+ }
59
+ return this.#options.shouldBuildLazily;
60
+ }
61
+ get shouldAutoInstall() {
62
+ if (!('shouldAutoInstall' in this.#options)) {
63
+ throw new Error('PluginOptions.shouldAutoInstall');
64
+ }
65
+ return this.#options.shouldAutoInstall;
66
+ }
67
+ get logLevel() {
68
+ if (!('logLevel' in this.#options)) {
69
+ throw new Error('PluginOptions.logLevel');
70
+ }
71
+ return this.#options.logLevel;
72
+ }
73
+ get cacheDir() {
74
+ if (!('cacheDir' in this.#options)) {
75
+ throw new Error('PluginOptions.cacheDir');
76
+ }
77
+ return this.#options.cacheDir;
78
+ }
79
+ get inputFS() {
80
+ if (!('inputFS' in this.#options)) {
81
+ throw new Error('PluginOptions.inputFS');
82
+ }
83
+ return this.#options.inputFS;
84
+ }
85
+ get outputFS() {
86
+ if (!('outputFS' in this.#options)) {
87
+ throw new Error('PluginOptions.outputFS');
88
+ }
89
+ return this.#options.outputFS;
90
+ }
91
+ get instanceId() {
92
+ if (!('instanceId' in this.#options)) {
93
+ throw new Error('PluginOptions.instanceId');
94
+ }
95
+ return this.#options.instanceId;
96
+ }
97
+ get detailedReport() {
98
+ if (!('detailedReport' in this.#options)) {
99
+ throw new Error('PluginOptions.detailedReport');
100
+ }
101
+ return this.#options.detailedReport;
102
+ }
103
+ get featureFlags() {
104
+ if (!('featureFlags' in this.#options)) {
105
+ throw new Error('PluginOptions.featureFlags');
106
+ }
107
+ return this.#options.featureFlags;
108
+ }
109
+ constructor(options) {
110
+ this.#options = options;
111
+ }
112
+ }
113
+ exports.PluginOptions = PluginOptions;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PluginTracer = void 0;
7
+ class PluginTracer {
8
+ createMeasurement() {
9
+ throw new Error('PluginTracer.createMeasurement');
10
+ }
11
+ }
12
+ exports.PluginTracer = PluginTracer;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Target = void 0;
7
+ class Target {
8
+ constructor(inner, env) {
9
+ this.distDir = inner.distDir;
10
+ this.distEntry = inner.distEntry;
11
+ this.name = inner.name;
12
+ this.publicUrl = inner.publicUrl;
13
+ this.loc = inner.loc;
14
+ this.env = env;
15
+ }
16
+ }
17
+ exports.Target = Target;