@@ -23,6 +23,9 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
23
23
See the Apache Version 2.0 License for specific language governing permissions
24
24
and limitations under the License.
25
25
***************************************************************************** */
26
+ /* global Reflect, Promise */
27
+
28
+
26
29
27
30
var __assign = Object.assign || function __assign(t) {
28
31
for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -38,11 +41,21 @@ function commonjsRequire () {
38
41
throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
39
42
}
40
43
44
+
45
+
41
46
function createCommonjsModule(fn, module) {
42
47
return module = { exports: {} }, fn(module, module.exports), module.exports;
43
48
}
44
49
45
50
var lodash = createCommonjsModule(function (module, exports) {
51
+ /**
52
+ * @license
53
+ * Lodash <https://lodash.com/>
54
+ * Copyright JS Foundation and other contributors <https://js.foundation/>
55
+ * Released under MIT license <https://lodash.com/license>
56
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
57
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
58
+ */
46
59
(function() {
47
60
48
61
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
@@ -17120,6 +17133,7 @@ var lodash = createCommonjsModule(function (module, exports) {
17120
17133
}
17121
17134
}.call(commonjsGlobal));
17122
17135
});
17136
+
17123
17137
var lodash_1 = lodash.get;
17124
17138
var lodash_2 = lodash.each;
17125
17139
var lodash_3 = lodash.isEqual;
@@ -17300,25 +17314,25 @@ var LanguageServiceHost = /** @class */ (function () {
17300
17314
17301
17315
/* global window */
17302
17316
17303
- var lodash$1 ;
17317
+ var lodash$2 ;
17304
17318
17305
17319
if (typeof commonjsRequire === "function") {
17306
17320
try {
17307
- lodash$1 = lodash;
17321
+ lodash$2 = lodash;
17308
17322
} catch (e) {}
17309
17323
}
17310
17324
17311
- if (!lodash$1 ) {
17312
- lodash$1 = window._;
17325
+ if (!lodash$2 ) {
17326
+ lodash$2 = window._;
17313
17327
}
17314
17328
17315
- var lodash_1$1 = lodash$1 ;
17329
+ var lodash_1$1 = lodash$2 ;
17316
17330
17317
17331
var graph = Graph;
17318
17332
17319
- var DEFAULT_EDGE_NAME = "\x00",
17320
- GRAPH_NODE = "\x00",
17321
- EDGE_KEY_DELIM = "\x01";
17333
+ var DEFAULT_EDGE_NAME = "\x00";
17334
+ var GRAPH_NODE = "\x00";
17335
+ var EDGE_KEY_DELIM = "\x01";
17322
17336
17323
17337
// Implementation notes:
17324
17338
//
@@ -18456,36 +18470,11 @@ var graphlib = {
18456
18470
alg: alg,
18457
18471
version: lib.version
18458
18472
};
18473
+
18459
18474
var graphlib_1 = graphlib.Graph;
18460
18475
var graphlib_3 = graphlib.alg;
18461
18476
18462
18477
var objectHash_1 = createCommonjsModule(function (module, exports) {
18463
-
18464
-
18465
-
18466
- /**
18467
- * Exported function
18468
- *
18469
- * Options:
18470
- *
18471
- * - `algorithm` hash algo to be used by this instance: *'sha1', 'md5'
18472
- * - `excludeValues` {true|*false} hash object keys, values ignored
18473
- * - `encoding` hash encoding, supports 'buffer', '*hex', 'binary', 'base64'
18474
- * - `ignoreUnknown` {true|*false} ignore unknown object types
18475
- * - `replacer` optional function that replaces values before hashing
18476
- * - `respectFunctionProperties` {*true|false} consider function properties when hashing
18477
- * - `respectFunctionNames` {*true|false} consider 'name' property of functions for hashing
18478
- * - `respectType` {*true|false} Respect special properties (prototype, constructor)
18479
- * when hashing to distinguish between types
18480
- * - `unorderedArrays` {true|*false} Sort all arrays before hashing
18481
- * - `unorderedSets` {*true|false} Sort `Set` and `Map` instances before hashing
18482
- * * = default
18483
- *
18484
- * @param {object} object value to hash
18485
- * @param {object} options hashing options
18486
- * @return {string} hash value
18487
- * @api public
18488
- */
18489
18478
exports = module.exports = objectHash;
18490
18479
18491
18480
function objectHash(object, options){
@@ -18897,6 +18886,7 @@ function PassThrough() {
18897
18886
};
18898
18887
}
18899
18888
});
18889
+
18900
18890
var objectHash_2 = objectHash_1.sha1;
18901
18891
var objectHash_3 = objectHash_1.keys;
18902
18892
var objectHash_4 = objectHash_1.MD5;
@@ -19514,6 +19504,7 @@ var safe = createCommonjsModule(function (module) {
19514
19504
19515
19505
module['exports'] = colors_1;
19516
19506
});
19507
+
19517
19508
var safe_1 = safe.green;
19518
19509
var safe_2 = safe.white;
19519
19510
var safe_3 = safe.red;
@@ -19962,7 +19953,7 @@ function typescript(options) {
19962
19953
var dts = lodash_11(output.outputFiles, function (entry) { return lodash_6(entry.name, ".d.ts"); });
19963
19954
return {
19964
19955
code: transpiled ? transpiled.text : undefined,
19965
- map: map ? JSON.parse( map.text) : { mappings: "" } ,
19956
+ map: map ? map.text : undefined ,
19966
19957
dts: dts,
19967
19958
};
19968
19959
});
@@ -19976,13 +19967,21 @@ function typescript(options) {
19976
19967
noErrors = false;
19977
19968
printDiagnostics(contextWrapper, diagnostics, parsedConfig.options.pretty === true);
19978
19969
}
19979
- if (result && result.dts) {
19980
- var key_1 = normalize(id);
19981
- declarations[key_1] = result.dts;
19982
- context.debug(function () { return safe_5("generated declarations") + " for '" + key_1 + "'"; });
19983
- result.dts = undefined;
19970
+ if (result) {
19971
+ if (result.dts) {
19972
+ var key_1 = normalize(id);
19973
+ declarations[key_1] = result.dts;
19974
+ context.debug(function () { return safe_5("generated declarations") + " for '" + key_1 + "'"; });
19975
+ }
19976
+ var transformResult = { code: result.code, map: { mappings: "" } };
19977
+ if (result.map) {
19978
+ if (pluginOptions.sourceMapCallback)
19979
+ pluginOptions.sourceMapCallback(id, result.map);
19980
+ transformResult.map = JSON.parse(result.map);
19981
+ }
19982
+ return transformResult;
19984
19983
}
19985
- return result ;
19984
+ return undefined ;
19986
19985
},
19987
19986
ongenerate: function () {
19988
19987
context.debug(function () { return "generating target " + (generateRound + 1); });
0 commit comments