neo-cmp-cli 1.8.7 → 1.8.9

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 (125) hide show
  1. package/bin/index.js +2 -2
  2. package/dist/_virtual/_commonjsHelpers.js +12 -0
  3. package/dist/_virtual/array-set.js +7 -0
  4. package/dist/_virtual/base64-vlq.js +7 -0
  5. package/dist/_virtual/base64.js +7 -0
  6. package/dist/_virtual/binary-search.js +7 -0
  7. package/dist/_virtual/mapping-list.js +7 -0
  8. package/dist/_virtual/quick-sort.js +7 -0
  9. package/dist/_virtual/source-map-consumer.js +7 -0
  10. package/dist/_virtual/source-map-generator.js +7 -0
  11. package/dist/_virtual/source-map-support.js +7 -0
  12. package/dist/_virtual/source-map.js +7 -0
  13. package/dist/_virtual/source-node.js +7 -0
  14. package/dist/_virtual/typescript.js +7 -0
  15. package/dist/_virtual/util.js +7 -0
  16. package/dist/config/auth.config.js +43 -0
  17. package/dist/config/default.config.js +192 -0
  18. package/dist/config/index.js +26 -0
  19. package/dist/main.js +9 -0
  20. package/dist/main2.js +259 -0
  21. package/dist/module/inspect.js +63 -0
  22. package/dist/module/neoInit.js +75 -0
  23. package/dist/module/neoInitByCopy.js +83 -0
  24. package/dist/neo/neoLogin.js +590 -0
  25. package/dist/neo/neoRequire.js +123 -0
  26. package/dist/neo/neoService.js +898 -0
  27. package/dist/node_modules/buffer-from/index.js +86 -0
  28. package/dist/node_modules/source-map/lib/array-set.js +138 -0
  29. package/dist/node_modules/source-map/lib/base64-vlq.js +157 -0
  30. package/dist/node_modules/source-map/lib/base64.js +83 -0
  31. package/dist/node_modules/source-map/lib/binary-search.js +129 -0
  32. package/dist/node_modules/source-map/lib/mapping-list.js +96 -0
  33. package/dist/node_modules/source-map/lib/quick-sort.js +130 -0
  34. package/dist/node_modules/source-map/lib/source-map-consumer.js +1166 -0
  35. package/dist/node_modules/source-map/lib/source-map-generator.js +445 -0
  36. package/dist/node_modules/source-map/lib/source-node.js +431 -0
  37. package/dist/node_modules/source-map/lib/util.js +506 -0
  38. package/dist/node_modules/source-map/source-map.js +27 -0
  39. package/dist/node_modules/source-map-support/source-map-support.js +646 -0
  40. package/dist/node_modules/typescript/lib/typescript.js +174130 -0
  41. package/dist/oss/publish2oss.js +331 -0
  42. package/dist/plugins/AddNeoRequirePlugin.js +195 -0
  43. package/dist/utils/autoEntryRootDir.js +103 -0
  44. package/dist/utils/cmpUtils/createCmpByTemplate.js +82 -0
  45. package/dist/utils/cmpUtils/createCmpByZip.js +433 -0
  46. package/dist/utils/cmpUtils/createCommonModulesCode.js +139 -0
  47. package/dist/utils/cmpUtils/deleteCmp.js +81 -0
  48. package/dist/utils/cmpUtils/getCmpModelRegisterCode.js +47 -0
  49. package/dist/utils/cmpUtils/getCmpPreviewCode.js +60 -0
  50. package/dist/utils/cmpUtils/getCmpRegisterCode.js +47 -0
  51. package/dist/utils/cmpUtils/getCmpTypeByDir.js +59 -0
  52. package/dist/utils/cmpUtils/hasCmpTypeByDir.js +27 -0
  53. package/dist/utils/cmpUtils/previewCmp.js +75 -0
  54. package/dist/utils/cmpUtils/pullCmp.js +126 -0
  55. package/dist/utils/cmpUtils/pushCmp.js +254 -0
  56. package/dist/utils/common.js +125 -0
  57. package/dist/utils/configureNeoBuild.js +129 -0
  58. package/dist/utils/generateEntries.js +80 -0
  59. package/dist/utils/neoConfigInit.js +30 -0
  60. package/dist/utils/neoParams.js +26 -0
  61. package/dist/utils/pathUtils.js +40 -0
  62. package/dist/utils/projectNameValidator.js +90 -0
  63. package/dist/utils/projectUtils/createCmpProjectByTemplate.js +81 -0
  64. package/dist/utils/projectUtils/createCmpProjectZip.js +141 -0
  65. package/dist/utils/projectUtils/getEntries.js +99 -0
  66. package/dist/utils/projectUtils/getEntriesWithAutoRegister.js +129 -0
  67. package/dist/utils/projectUtils/hasNeoProject.js +34 -0
  68. package/dist/utils/projectUtils/openProject.js +117 -0
  69. package/dist/utils/projectUtils/updatePublishLog.js +47 -0
  70. package/dist/utils/replaceInFilesByMap.js +71 -0
  71. package/dist/utils/replaceInPackage.js +151 -0
  72. package/dist/utils/resetPackageVersion.js +132 -0
  73. package/package.json +6 -8
  74. package/test/demo.js +0 -2
  75. package/test/deprecate-versions.js +1 -1
  76. package/src/config/auth.config.js +0 -27
  77. package/src/config/default.config.js +0 -176
  78. package/src/config/index.js +0 -9
  79. package/src/main.js +0 -221
  80. package/src/module/inspect.js +0 -41
  81. package/src/module/neoInit.js +0 -55
  82. package/src/module/neoInitByCopy.js +0 -61
  83. package/src/neo/NeoUMDContent.js +0 -30
  84. package/src/neo/neoLogin.js +0 -565
  85. package/src/neo/neoRequire.js +0 -125
  86. package/src/neo/neoService.js +0 -874
  87. package/src/neo/webpack.mf.js +0 -60
  88. package/src/neo/wrapperContent.js +0 -16
  89. package/src/oss/publish2oss.js +0 -348
  90. package/src/plugins/AddNeoRequirePlugin-v1.js +0 -47
  91. package/src/plugins/AddNeoRequirePlugin.js +0 -179
  92. package/src/plugins/README.md +0 -109
  93. package/src/utils/autoEntryRootDir.js +0 -85
  94. package/src/utils/cmpUtils/createCmpByTemplate.js +0 -60
  95. package/src/utils/cmpUtils/createCmpByZip.js +0 -408
  96. package/src/utils/cmpUtils/createCommonModulesCode.js +0 -121
  97. package/src/utils/cmpUtils/deleteCmp.js +0 -63
  98. package/src/utils/cmpUtils/getCmpModelRegisterCode.js +0 -31
  99. package/src/utils/cmpUtils/getCmpPreviewCode.js +0 -43
  100. package/src/utils/cmpUtils/getCmpRegisterCode.js +0 -31
  101. package/src/utils/cmpUtils/getCmpTypeByDir.js +0 -41
  102. package/src/utils/cmpUtils/hasCmpTypeByDir.js +0 -11
  103. package/src/utils/cmpUtils/previewCmp.js +0 -55
  104. package/src/utils/cmpUtils/pullCmp.js +0 -104
  105. package/src/utils/cmpUtils/pushCmp.js +0 -230
  106. package/src/utils/common.js +0 -107
  107. package/src/utils/configureNeoBuild.js +0 -109
  108. package/src/utils/generateEntries.js +0 -63
  109. package/src/utils/neoConfigInit.js +0 -13
  110. package/src/utils/neoParams.js +0 -12
  111. package/src/utils/pathUtils.js +0 -23
  112. package/src/utils/projectNameValidator.js +0 -76
  113. package/src/utils/projectUtils/createCmpProjectByTemplate.js +0 -59
  114. package/src/utils/projectUtils/createCmpProjectZip.js +0 -120
  115. package/src/utils/projectUtils/getEntries.js +0 -80
  116. package/src/utils/projectUtils/getEntriesWithAutoRegister.js +0 -108
  117. package/src/utils/projectUtils/hasNeoProject.js +0 -17
  118. package/src/utils/projectUtils/openProject.js +0 -96
  119. package/src/utils/projectUtils/updatePublishLog.js +0 -30
  120. package/src/utils/replaceInFiles.js +0 -47
  121. package/src/utils/replaceInFilesByMap.js +0 -54
  122. package/src/utils/replaceInPackage.js +0 -134
  123. package/src/utils/resetPackageVersion.js +0 -115
  124. /package/{src → template}/initData/defaultTemplate.html +0 -0
  125. /package/{src → template}/initData/neo.config.js +0 -0
@@ -0,0 +1,431 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const sourceNode = require('../../../_virtual/source-node.js');
6
+ const sourceMapGenerator = require('./source-map-generator.js');
7
+ const util = require('./util.js');
8
+
9
+ /* -*- Mode: js; js-indent-level: 2; -*- */
10
+
11
+ var hasRequiredSourceNode;
12
+
13
+ function requireSourceNode () {
14
+ if (hasRequiredSourceNode) return sourceNode.__exports;
15
+ hasRequiredSourceNode = 1;
16
+ /*
17
+ * Copyright 2011 Mozilla Foundation and contributors
18
+ * Licensed under the New BSD license. See LICENSE or:
19
+ * http://opensource.org/licenses/BSD-3-Clause
20
+ */
21
+
22
+ var SourceMapGenerator = sourceMapGenerator.__require().SourceMapGenerator;
23
+ var util$1 = util.__require();
24
+
25
+ // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
26
+ // operating systems these days (capturing the result).
27
+ var REGEX_NEWLINE = /(\r?\n)/;
28
+
29
+ // Newline character code for charCodeAt() comparisons
30
+ var NEWLINE_CODE = 10;
31
+
32
+ // Private symbol for identifying `SourceNode`s when multiple versions of
33
+ // the source-map library are loaded. This MUST NOT CHANGE across
34
+ // versions!
35
+ var isSourceNode = "$$$isSourceNode$$$";
36
+
37
+ /**
38
+ * SourceNodes provide a way to abstract over interpolating/concatenating
39
+ * snippets of generated JavaScript source code while maintaining the line and
40
+ * column information associated with the original source code.
41
+ *
42
+ * @param aLine The original line number.
43
+ * @param aColumn The original column number.
44
+ * @param aSource The original source's filename.
45
+ * @param aChunks Optional. An array of strings which are snippets of
46
+ * generated JS, or other SourceNodes.
47
+ * @param aName The original identifier.
48
+ */
49
+ function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
50
+ this.children = [];
51
+ this.sourceContents = {};
52
+ this.line = aLine == null ? null : aLine;
53
+ this.column = aColumn == null ? null : aColumn;
54
+ this.source = aSource == null ? null : aSource;
55
+ this.name = aName == null ? null : aName;
56
+ this[isSourceNode] = true;
57
+ if (aChunks != null) this.add(aChunks);
58
+ }
59
+
60
+ /**
61
+ * Creates a SourceNode from generated code and a SourceMapConsumer.
62
+ *
63
+ * @param aGeneratedCode The generated code
64
+ * @param aSourceMapConsumer The SourceMap for the generated code
65
+ * @param aRelativePath Optional. The path that relative sources in the
66
+ * SourceMapConsumer should be relative to.
67
+ */
68
+ SourceNode.fromStringWithSourceMap =
69
+ function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
70
+ // The SourceNode we want to fill with the generated code
71
+ // and the SourceMap
72
+ var node = new SourceNode();
73
+
74
+ // All even indices of this array are one line of the generated code,
75
+ // while all odd indices are the newlines between two adjacent lines
76
+ // (since `REGEX_NEWLINE` captures its match).
77
+ // Processed fragments are accessed by calling `shiftNextLine`.
78
+ var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
79
+ var remainingLinesIndex = 0;
80
+ var shiftNextLine = function() {
81
+ var lineContents = getNextLine();
82
+ // The last line of a file might not have a newline.
83
+ var newLine = getNextLine() || "";
84
+ return lineContents + newLine;
85
+
86
+ function getNextLine() {
87
+ return remainingLinesIndex < remainingLines.length ?
88
+ remainingLines[remainingLinesIndex++] : undefined;
89
+ }
90
+ };
91
+
92
+ // We need to remember the position of "remainingLines"
93
+ var lastGeneratedLine = 1, lastGeneratedColumn = 0;
94
+
95
+ // The generate SourceNodes we need a code range.
96
+ // To extract it current and last mapping is used.
97
+ // Here we store the last mapping.
98
+ var lastMapping = null;
99
+
100
+ aSourceMapConsumer.eachMapping(function (mapping) {
101
+ if (lastMapping !== null) {
102
+ // We add the code from "lastMapping" to "mapping":
103
+ // First check if there is a new line in between.
104
+ if (lastGeneratedLine < mapping.generatedLine) {
105
+ // Associate first line with "lastMapping"
106
+ addMappingWithCode(lastMapping, shiftNextLine());
107
+ lastGeneratedLine++;
108
+ lastGeneratedColumn = 0;
109
+ // The remaining code is added without mapping
110
+ } else {
111
+ // There is no new line in between.
112
+ // Associate the code between "lastGeneratedColumn" and
113
+ // "mapping.generatedColumn" with "lastMapping"
114
+ var nextLine = remainingLines[remainingLinesIndex] || '';
115
+ var code = nextLine.substr(0, mapping.generatedColumn -
116
+ lastGeneratedColumn);
117
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -
118
+ lastGeneratedColumn);
119
+ lastGeneratedColumn = mapping.generatedColumn;
120
+ addMappingWithCode(lastMapping, code);
121
+ // No more remaining code, continue
122
+ lastMapping = mapping;
123
+ return;
124
+ }
125
+ }
126
+ // We add the generated code until the first mapping
127
+ // to the SourceNode without any mapping.
128
+ // Each line is added as separate string.
129
+ while (lastGeneratedLine < mapping.generatedLine) {
130
+ node.add(shiftNextLine());
131
+ lastGeneratedLine++;
132
+ }
133
+ if (lastGeneratedColumn < mapping.generatedColumn) {
134
+ var nextLine = remainingLines[remainingLinesIndex] || '';
135
+ node.add(nextLine.substr(0, mapping.generatedColumn));
136
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
137
+ lastGeneratedColumn = mapping.generatedColumn;
138
+ }
139
+ lastMapping = mapping;
140
+ }, this);
141
+ // We have processed all mappings.
142
+ if (remainingLinesIndex < remainingLines.length) {
143
+ if (lastMapping) {
144
+ // Associate the remaining code in the current line with "lastMapping"
145
+ addMappingWithCode(lastMapping, shiftNextLine());
146
+ }
147
+ // and add the remaining lines without any mapping
148
+ node.add(remainingLines.splice(remainingLinesIndex).join(""));
149
+ }
150
+
151
+ // Copy sourcesContent into SourceNode
152
+ aSourceMapConsumer.sources.forEach(function (sourceFile) {
153
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
154
+ if (content != null) {
155
+ if (aRelativePath != null) {
156
+ sourceFile = util$1.join(aRelativePath, sourceFile);
157
+ }
158
+ node.setSourceContent(sourceFile, content);
159
+ }
160
+ });
161
+
162
+ return node;
163
+
164
+ function addMappingWithCode(mapping, code) {
165
+ if (mapping === null || mapping.source === undefined) {
166
+ node.add(code);
167
+ } else {
168
+ var source = aRelativePath
169
+ ? util$1.join(aRelativePath, mapping.source)
170
+ : mapping.source;
171
+ node.add(new SourceNode(mapping.originalLine,
172
+ mapping.originalColumn,
173
+ source,
174
+ code,
175
+ mapping.name));
176
+ }
177
+ }
178
+ };
179
+
180
+ /**
181
+ * Add a chunk of generated JS to this source node.
182
+ *
183
+ * @param aChunk A string snippet of generated JS code, another instance of
184
+ * SourceNode, or an array where each member is one of those things.
185
+ */
186
+ SourceNode.prototype.add = function SourceNode_add(aChunk) {
187
+ if (Array.isArray(aChunk)) {
188
+ aChunk.forEach(function (chunk) {
189
+ this.add(chunk);
190
+ }, this);
191
+ }
192
+ else if (aChunk[isSourceNode] || typeof aChunk === "string") {
193
+ if (aChunk) {
194
+ this.children.push(aChunk);
195
+ }
196
+ }
197
+ else {
198
+ throw new TypeError(
199
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
200
+ );
201
+ }
202
+ return this;
203
+ };
204
+
205
+ /**
206
+ * Add a chunk of generated JS to the beginning of this source node.
207
+ *
208
+ * @param aChunk A string snippet of generated JS code, another instance of
209
+ * SourceNode, or an array where each member is one of those things.
210
+ */
211
+ SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
212
+ if (Array.isArray(aChunk)) {
213
+ for (var i = aChunk.length-1; i >= 0; i--) {
214
+ this.prepend(aChunk[i]);
215
+ }
216
+ }
217
+ else if (aChunk[isSourceNode] || typeof aChunk === "string") {
218
+ this.children.unshift(aChunk);
219
+ }
220
+ else {
221
+ throw new TypeError(
222
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
223
+ );
224
+ }
225
+ return this;
226
+ };
227
+
228
+ /**
229
+ * Walk over the tree of JS snippets in this node and its children. The
230
+ * walking function is called once for each snippet of JS and is passed that
231
+ * snippet and the its original associated source's line/column location.
232
+ *
233
+ * @param aFn The traversal function.
234
+ */
235
+ SourceNode.prototype.walk = function SourceNode_walk(aFn) {
236
+ var chunk;
237
+ for (var i = 0, len = this.children.length; i < len; i++) {
238
+ chunk = this.children[i];
239
+ if (chunk[isSourceNode]) {
240
+ chunk.walk(aFn);
241
+ }
242
+ else {
243
+ if (chunk !== '') {
244
+ aFn(chunk, { source: this.source,
245
+ line: this.line,
246
+ column: this.column,
247
+ name: this.name });
248
+ }
249
+ }
250
+ }
251
+ };
252
+
253
+ /**
254
+ * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
255
+ * each of `this.children`.
256
+ *
257
+ * @param aSep The separator.
258
+ */
259
+ SourceNode.prototype.join = function SourceNode_join(aSep) {
260
+ var newChildren;
261
+ var i;
262
+ var len = this.children.length;
263
+ if (len > 0) {
264
+ newChildren = [];
265
+ for (i = 0; i < len-1; i++) {
266
+ newChildren.push(this.children[i]);
267
+ newChildren.push(aSep);
268
+ }
269
+ newChildren.push(this.children[i]);
270
+ this.children = newChildren;
271
+ }
272
+ return this;
273
+ };
274
+
275
+ /**
276
+ * Call String.prototype.replace on the very right-most source snippet. Useful
277
+ * for trimming whitespace from the end of a source node, etc.
278
+ *
279
+ * @param aPattern The pattern to replace.
280
+ * @param aReplacement The thing to replace the pattern with.
281
+ */
282
+ SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
283
+ var lastChild = this.children[this.children.length - 1];
284
+ if (lastChild[isSourceNode]) {
285
+ lastChild.replaceRight(aPattern, aReplacement);
286
+ }
287
+ else if (typeof lastChild === 'string') {
288
+ this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
289
+ }
290
+ else {
291
+ this.children.push(''.replace(aPattern, aReplacement));
292
+ }
293
+ return this;
294
+ };
295
+
296
+ /**
297
+ * Set the source content for a source file. This will be added to the SourceMapGenerator
298
+ * in the sourcesContent field.
299
+ *
300
+ * @param aSourceFile The filename of the source file
301
+ * @param aSourceContent The content of the source file
302
+ */
303
+ SourceNode.prototype.setSourceContent =
304
+ function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
305
+ this.sourceContents[util$1.toSetString(aSourceFile)] = aSourceContent;
306
+ };
307
+
308
+ /**
309
+ * Walk over the tree of SourceNodes. The walking function is called for each
310
+ * source file content and is passed the filename and source content.
311
+ *
312
+ * @param aFn The traversal function.
313
+ */
314
+ SourceNode.prototype.walkSourceContents =
315
+ function SourceNode_walkSourceContents(aFn) {
316
+ for (var i = 0, len = this.children.length; i < len; i++) {
317
+ if (this.children[i][isSourceNode]) {
318
+ this.children[i].walkSourceContents(aFn);
319
+ }
320
+ }
321
+
322
+ var sources = Object.keys(this.sourceContents);
323
+ for (var i = 0, len = sources.length; i < len; i++) {
324
+ aFn(util$1.fromSetString(sources[i]), this.sourceContents[sources[i]]);
325
+ }
326
+ };
327
+
328
+ /**
329
+ * Return the string representation of this source node. Walks over the tree
330
+ * and concatenates all the various snippets together to one string.
331
+ */
332
+ SourceNode.prototype.toString = function SourceNode_toString() {
333
+ var str = "";
334
+ this.walk(function (chunk) {
335
+ str += chunk;
336
+ });
337
+ return str;
338
+ };
339
+
340
+ /**
341
+ * Returns the string representation of this source node along with a source
342
+ * map.
343
+ */
344
+ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
345
+ var generated = {
346
+ code: "",
347
+ line: 1,
348
+ column: 0
349
+ };
350
+ var map = new SourceMapGenerator(aArgs);
351
+ var sourceMappingActive = false;
352
+ var lastOriginalSource = null;
353
+ var lastOriginalLine = null;
354
+ var lastOriginalColumn = null;
355
+ var lastOriginalName = null;
356
+ this.walk(function (chunk, original) {
357
+ generated.code += chunk;
358
+ if (original.source !== null
359
+ && original.line !== null
360
+ && original.column !== null) {
361
+ if(lastOriginalSource !== original.source
362
+ || lastOriginalLine !== original.line
363
+ || lastOriginalColumn !== original.column
364
+ || lastOriginalName !== original.name) {
365
+ map.addMapping({
366
+ source: original.source,
367
+ original: {
368
+ line: original.line,
369
+ column: original.column
370
+ },
371
+ generated: {
372
+ line: generated.line,
373
+ column: generated.column
374
+ },
375
+ name: original.name
376
+ });
377
+ }
378
+ lastOriginalSource = original.source;
379
+ lastOriginalLine = original.line;
380
+ lastOriginalColumn = original.column;
381
+ lastOriginalName = original.name;
382
+ sourceMappingActive = true;
383
+ } else if (sourceMappingActive) {
384
+ map.addMapping({
385
+ generated: {
386
+ line: generated.line,
387
+ column: generated.column
388
+ }
389
+ });
390
+ lastOriginalSource = null;
391
+ sourceMappingActive = false;
392
+ }
393
+ for (var idx = 0, length = chunk.length; idx < length; idx++) {
394
+ if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
395
+ generated.line++;
396
+ generated.column = 0;
397
+ // Mappings end at eol
398
+ if (idx + 1 === length) {
399
+ lastOriginalSource = null;
400
+ sourceMappingActive = false;
401
+ } else if (sourceMappingActive) {
402
+ map.addMapping({
403
+ source: original.source,
404
+ original: {
405
+ line: original.line,
406
+ column: original.column
407
+ },
408
+ generated: {
409
+ line: generated.line,
410
+ column: generated.column
411
+ },
412
+ name: original.name
413
+ });
414
+ }
415
+ } else {
416
+ generated.column++;
417
+ }
418
+ }
419
+ });
420
+ this.walkSourceContents(function (sourceFile, sourceContent) {
421
+ map.setSourceContent(sourceFile, sourceContent);
422
+ });
423
+
424
+ return { code: generated.code, map: map };
425
+ };
426
+
427
+ sourceNode.__exports.SourceNode = SourceNode;
428
+ return sourceNode.__exports;
429
+ }
430
+
431
+ exports.__require = requireSourceNode;