@@ -23,6 +23,9 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2323See the Apache Version 2.0 License for specific language governing permissions
2424and limitations under the License.
2525***************************************************************************** */
26+ /* global Reflect, Promise */
27+
28+
2629
2730var __assign = Object.assign || function __assign(t) {
2831 for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -38,11 +41,21 @@ function commonjsRequire () {
3841 throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
3942}
4043
44+
45+
4146function createCommonjsModule(fn, module) {
4247 return module = { exports: {} }, fn(module, module.exports), module.exports;
4348}
4449
4550var 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+ */
4659(function() {
4760
4861 /** Used as a safe reference for `undefined` in pre-ES5 environments. */
@@ -17120,6 +17133,7 @@ var lodash = createCommonjsModule(function (module, exports) {
1712017133 }
1712117134}.call(commonjsGlobal));
1712217135});
17136+
1712317137var lodash_1 = lodash.get;
1712417138var lodash_2 = lodash.each;
1712517139var lodash_3 = lodash.isEqual;
@@ -17300,25 +17314,25 @@ var LanguageServiceHost = /** @class */ (function () {
1730017314
1730117315/* global window */
1730217316
17303- var lodash$1 ;
17317+ var lodash$2 ;
1730417318
1730517319if (typeof commonjsRequire === "function") {
1730617320 try {
17307- lodash$1 = lodash;
17321+ lodash$2 = lodash;
1730817322 } catch (e) {}
1730917323}
1731017324
17311- if (!lodash$1 ) {
17312- lodash$1 = window._;
17325+ if (!lodash$2 ) {
17326+ lodash$2 = window._;
1731317327}
1731417328
17315- var lodash_1$1 = lodash$1 ;
17329+ var lodash_1$1 = lodash$2 ;
1731617330
1731717331var graph = Graph;
1731817332
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";
1732217336
1732317337// Implementation notes:
1732417338//
@@ -18456,36 +18470,11 @@ var graphlib = {
1845618470 alg: alg,
1845718471 version: lib.version
1845818472};
18473+
1845918474var graphlib_1 = graphlib.Graph;
1846018475var graphlib_3 = graphlib.alg;
1846118476
1846218477var 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- */
1848918478exports = module.exports = objectHash;
1849018479
1849118480function objectHash(object, options){
@@ -18897,6 +18886,7 @@ function PassThrough() {
1889718886 };
1889818887}
1889918888});
18889+
1890018890var objectHash_2 = objectHash_1.sha1;
1890118891var objectHash_3 = objectHash_1.keys;
1890218892var objectHash_4 = objectHash_1.MD5;
@@ -19514,6 +19504,7 @@ var safe = createCommonjsModule(function (module) {
1951419504
1951519505module['exports'] = colors_1;
1951619506});
19507+
1951719508var safe_1 = safe.green;
1951819509var safe_2 = safe.white;
1951919510var safe_3 = safe.red;
@@ -19962,7 +19953,7 @@ function typescript(options) {
1996219953 var dts = lodash_11(output.outputFiles, function (entry) { return lodash_6(entry.name, ".d.ts"); });
1996319954 return {
1996419955 code: transpiled ? transpiled.text : undefined,
19965- map: map ? JSON.parse( map.text) : { mappings: "" } ,
19956+ map: map ? map.text : undefined ,
1996619957 dts: dts,
1996719958 };
1996819959 });
@@ -19976,13 +19967,21 @@ function typescript(options) {
1997619967 noErrors = false;
1997719968 printDiagnostics(contextWrapper, diagnostics, parsedConfig.options.pretty === true);
1997819969 }
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;
1998419983 }
19985- return result ;
19984+ return undefined ;
1998619985 },
1998719986 ongenerate: function () {
1998819987 context.debug(function () { return "generating target " + (generateRound + 1); });
0 commit comments