@rspack/core 1.2.5 → 1.2.7-alpha.0

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.
@@ -1 +1 @@
1
- {"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.0","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.24.4","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -138,7 +138,7 @@ module.exports = function (glob, opts) {
138
138
 
139
139
  /***/ }),
140
140
 
141
- /***/ 100:
141
+ /***/ 877:
142
142
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
143
143
 
144
144
  "use strict";
@@ -152,7 +152,7 @@ const EventEmitter = (__nccwpck_require__(434).EventEmitter);
152
152
  const fs = __nccwpck_require__(923);
153
153
  const path = __nccwpck_require__(928);
154
154
 
155
- const watchEventSource = __nccwpck_require__(829);
155
+ const watchEventSource = __nccwpck_require__(200);
156
156
 
157
157
  const EXISTANCE_ONLY_TIME_ENTRY = Object.freeze({});
158
158
 
@@ -933,7 +933,7 @@ function ensureFsAccuracy(mtime) {
933
933
 
934
934
  /***/ }),
935
935
 
936
- /***/ 91:
936
+ /***/ 898:
937
937
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
938
938
 
939
939
  "use strict";
@@ -1048,7 +1048,7 @@ module.exports = LinkResolver;
1048
1048
 
1049
1049
  /***/ }),
1050
1050
 
1051
- /***/ 130:
1051
+ /***/ 673:
1052
1052
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1053
1053
 
1054
1054
  "use strict";
@@ -1059,7 +1059,7 @@ module.exports = LinkResolver;
1059
1059
 
1060
1060
 
1061
1061
  const path = __nccwpck_require__(928);
1062
- const DirectoryWatcher = __nccwpck_require__(100);
1062
+ const DirectoryWatcher = __nccwpck_require__(877);
1063
1063
 
1064
1064
  class WatcherManager {
1065
1065
  constructor(options) {
@@ -1108,7 +1108,7 @@ module.exports.WatcherManager = WatcherManager;
1108
1108
 
1109
1109
  /***/ }),
1110
1110
 
1111
- /***/ 948:
1111
+ /***/ 181:
1112
1112
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1113
1113
 
1114
1114
  "use strict";
@@ -1254,7 +1254,7 @@ module.exports = (plan, limit) => {
1254
1254
 
1255
1255
  /***/ }),
1256
1256
 
1257
- /***/ 829:
1257
+ /***/ 200:
1258
1258
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
1259
1259
 
1260
1260
  "use strict";
@@ -1267,7 +1267,7 @@ module.exports = (plan, limit) => {
1267
1267
  const fs = __nccwpck_require__(896);
1268
1268
  const path = __nccwpck_require__(928);
1269
1269
  const { EventEmitter } = __nccwpck_require__(434);
1270
- const reducePlan = __nccwpck_require__(948);
1270
+ const reducePlan = __nccwpck_require__(181);
1271
1271
 
1272
1272
  const IS_OSX = (__nccwpck_require__(857).platform)() === "darwin";
1273
1273
  const IS_WIN = (__nccwpck_require__(857).platform)() === "win32";
@@ -1595,7 +1595,7 @@ exports.getNumberOfWatchers = () => {
1595
1595
 
1596
1596
  /***/ }),
1597
1597
 
1598
- /***/ 239:
1598
+ /***/ 640:
1599
1599
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1600
1600
 
1601
1601
  "use strict";
@@ -1605,11 +1605,11 @@ exports.getNumberOfWatchers = () => {
1605
1605
  */
1606
1606
 
1607
1607
 
1608
- const getWatcherManager = __nccwpck_require__(130);
1609
- const LinkResolver = __nccwpck_require__(91);
1608
+ const getWatcherManager = __nccwpck_require__(673);
1609
+ const LinkResolver = __nccwpck_require__(898);
1610
1610
  const EventEmitter = (__nccwpck_require__(434).EventEmitter);
1611
1611
  const globToRegExp = __nccwpck_require__(137);
1612
- const watchEventSource = __nccwpck_require__(829);
1612
+ const watchEventSource = __nccwpck_require__(200);
1613
1613
 
1614
1614
  const EMPTY_ARRAY = [];
1615
1615
  const EMPTY_OPTIONS = {};
@@ -1624,18 +1624,28 @@ function addWatchersToSet(watchers, set) {
1624
1624
  }
1625
1625
 
1626
1626
  const stringToRegexp = ignored => {
1627
+ if (ignored.length === 0) {
1628
+ return;
1629
+ }
1627
1630
  const source = globToRegExp(ignored, { globstar: true, extended: true })
1628
1631
  .source;
1629
- const matchingStart = source.slice(0, source.length - 1) + "(?:$|\\/)";
1630
- return matchingStart;
1632
+ return source.slice(0, source.length - 1) + "(?:$|\\/)";
1631
1633
  };
1632
1634
 
1633
1635
  const ignoredToFunction = ignored => {
1634
1636
  if (Array.isArray(ignored)) {
1635
- const regexp = new RegExp(ignored.map(i => stringToRegexp(i)).join("|"));
1637
+ const stringRegexps = ignored.map(i => stringToRegexp(i)).filter(Boolean);
1638
+ if (stringRegexps.length === 0) {
1639
+ return () => false;
1640
+ }
1641
+ const regexp = new RegExp(stringRegexps.join("|"));
1636
1642
  return x => regexp.test(x.replace(/\\/g, "/"));
1637
1643
  } else if (typeof ignored === "string") {
1638
- const regexp = new RegExp(stringToRegexp(ignored));
1644
+ const stringRegexp = stringToRegexp(ignored);
1645
+ if (!stringRegexp) {
1646
+ return () => false;
1647
+ }
1648
+ const regexp = new RegExp(stringRegexp);
1639
1649
  return x => regexp.test(x.replace(/\\/g, "/"));
1640
1650
  } else if (ignored instanceof RegExp) {
1641
1651
  return x => ignored.test(x.replace(/\\/g, "/"));
@@ -2068,7 +2078,7 @@ module.exports = require("path");
2068
2078
  /******/ // startup
2069
2079
  /******/ // Load entry module and return exports
2070
2080
  /******/ // This entry module is referenced by other modules so it can't be inlined
2071
- /******/ var __webpack_exports__ = __nccwpck_require__(239);
2081
+ /******/ var __webpack_exports__ = __nccwpck_require__(640);
2072
2082
  /******/ module.exports = __webpack_exports__;
2073
2083
  /******/
2074
2084
  /******/ })()
@@ -1 +1 @@
1
- {"name":"watchpack","author":"Tobias Koppers @sokra","version":"2.4.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"watchpack","author":"Tobias Koppers @sokra","version":"2.4.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1386,7 +1386,7 @@ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["
1386
1386
  type CustomParams = CustomErrorParams & {
1387
1387
  fatal?: boolean;
1388
1388
  };
1389
- declare function custom<T>(check?: (data: any) => any, params?: string | CustomParams | ((input: any) => CustomParams),
1389
+ declare function custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams),
1390
1390
  /**
1391
1391
  * @deprecated
1392
1392
  *
@@ -2,13 +2,13 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 143:
5
+ /***/ 106:
6
6
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10
10
  exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
11
- const util_1 = __nccwpck_require__(568);
11
+ const util_1 = __nccwpck_require__(241);
12
12
  exports.ZodIssueCode = util_1.util.arrayToEnum([
13
13
  "invalid_type",
14
14
  "invalid_literal",
@@ -146,7 +146,7 @@ ZodError.create = (issues) => {
146
146
 
147
147
  /***/ }),
148
148
 
149
- /***/ 193:
149
+ /***/ 508:
150
150
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
151
151
 
152
152
 
@@ -155,7 +155,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
155
155
  };
156
156
  Object.defineProperty(exports, "__esModule", ({ value: true }));
157
157
  exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
158
- const en_1 = __importDefault(__nccwpck_require__(929));
158
+ const en_1 = __importDefault(__nccwpck_require__(316));
159
159
  exports.defaultErrorMap = en_1.default;
160
160
  let overrideErrorMap = en_1.default;
161
161
  function setErrorMap(map) {
@@ -170,7 +170,7 @@ exports.getErrorMap = getErrorMap;
170
170
 
171
171
  /***/ }),
172
172
 
173
- /***/ 869:
173
+ /***/ 892:
174
174
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
175
175
 
176
176
 
@@ -189,17 +189,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
189
189
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
190
190
  };
191
191
  Object.defineProperty(exports, "__esModule", ({ value: true }));
192
- __exportStar(__nccwpck_require__(193), exports);
193
- __exportStar(__nccwpck_require__(641), exports);
194
- __exportStar(__nccwpck_require__(206), exports);
195
- __exportStar(__nccwpck_require__(568), exports);
196
- __exportStar(__nccwpck_require__(413), exports);
197
- __exportStar(__nccwpck_require__(143), exports);
192
+ __exportStar(__nccwpck_require__(508), exports);
193
+ __exportStar(__nccwpck_require__(906), exports);
194
+ __exportStar(__nccwpck_require__(689), exports);
195
+ __exportStar(__nccwpck_require__(241), exports);
196
+ __exportStar(__nccwpck_require__(842), exports);
197
+ __exportStar(__nccwpck_require__(106), exports);
198
198
 
199
199
 
200
200
  /***/ }),
201
201
 
202
- /***/ 424:
202
+ /***/ 927:
203
203
  /***/ ((__unused_webpack_module, exports) => {
204
204
 
205
205
 
@@ -214,7 +214,7 @@ var errorUtil;
214
214
 
215
215
  /***/ }),
216
216
 
217
- /***/ 641:
217
+ /***/ 906:
218
218
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
219
219
 
220
220
 
@@ -223,8 +223,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
223
223
  };
224
224
  Object.defineProperty(exports, "__esModule", ({ value: true }));
225
225
  exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;
226
- const errors_1 = __nccwpck_require__(193);
227
- const en_1 = __importDefault(__nccwpck_require__(929));
226
+ const errors_1 = __nccwpck_require__(508);
227
+ const en_1 = __importDefault(__nccwpck_require__(316));
228
228
  const makeIssue = (params) => {
229
229
  const { data, path, errorMaps, issueData } = params;
230
230
  const fullPath = [...path, ...(issueData.path || [])];
@@ -346,7 +346,7 @@ exports.isAsync = isAsync;
346
346
 
347
347
  /***/ }),
348
348
 
349
- /***/ 206:
349
+ /***/ 689:
350
350
  /***/ ((__unused_webpack_module, exports) => {
351
351
 
352
352
 
@@ -355,7 +355,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
355
355
 
356
356
  /***/ }),
357
357
 
358
- /***/ 568:
358
+ /***/ 241:
359
359
  /***/ ((__unused_webpack_module, exports) => {
360
360
 
361
361
 
@@ -504,7 +504,7 @@ exports.getParsedType = getParsedType;
504
504
 
505
505
  /***/ }),
506
506
 
507
- /***/ 656:
507
+ /***/ 771:
508
508
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
509
509
 
510
510
 
@@ -536,21 +536,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
536
536
  };
537
537
  Object.defineProperty(exports, "__esModule", ({ value: true }));
538
538
  exports.z = void 0;
539
- const z = __importStar(__nccwpck_require__(869));
539
+ const z = __importStar(__nccwpck_require__(892));
540
540
  exports.z = z;
541
- __exportStar(__nccwpck_require__(869), exports);
541
+ __exportStar(__nccwpck_require__(892), exports);
542
542
  exports["default"] = z;
543
543
 
544
544
 
545
545
  /***/ }),
546
546
 
547
- /***/ 929:
547
+ /***/ 316:
548
548
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
549
549
 
550
550
 
551
551
  Object.defineProperty(exports, "__esModule", ({ value: true }));
552
- const util_1 = __nccwpck_require__(568);
553
- const ZodError_1 = __nccwpck_require__(143);
552
+ const util_1 = __nccwpck_require__(241);
553
+ const ZodError_1 = __nccwpck_require__(106);
554
554
  const errorMap = (issue, _ctx) => {
555
555
  let message;
556
556
  switch (issue.code) {
@@ -680,7 +680,7 @@ exports["default"] = errorMap;
680
680
 
681
681
  /***/ }),
682
682
 
683
- /***/ 413:
683
+ /***/ 842:
684
684
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
685
685
 
686
686
 
@@ -699,11 +699,11 @@ var _ZodEnum_cache, _ZodNativeEnum_cache;
699
699
  Object.defineProperty(exports, "__esModule", ({ value: true }));
700
700
  exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.datetimeRegex = exports.ZodType = void 0;
701
701
  exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = exports.discriminatedUnion = exports.date = void 0;
702
- const errors_1 = __nccwpck_require__(193);
703
- const errorUtil_1 = __nccwpck_require__(424);
704
- const parseUtil_1 = __nccwpck_require__(641);
705
- const util_1 = __nccwpck_require__(568);
706
- const ZodError_1 = __nccwpck_require__(143);
702
+ const errors_1 = __nccwpck_require__(508);
703
+ const errorUtil_1 = __nccwpck_require__(927);
704
+ const parseUtil_1 = __nccwpck_require__(906);
705
+ const util_1 = __nccwpck_require__(241);
706
+ const ZodError_1 = __nccwpck_require__(106);
707
707
  class ParseInputLazyPath {
708
708
  constructor(parent, value, path, key) {
709
709
  this._cachedPath = [];
@@ -4339,7 +4339,23 @@ ZodReadonly.create = (type, params) => {
4339
4339
  ...processCreateParams(params),
4340
4340
  });
4341
4341
  };
4342
- function custom(check, params = {},
4342
+ ////////////////////////////////////////
4343
+ ////////////////////////////////////////
4344
+ ////////// //////////
4345
+ ////////// z.custom //////////
4346
+ ////////// //////////
4347
+ ////////////////////////////////////////
4348
+ ////////////////////////////////////////
4349
+ function cleanParams(params, data) {
4350
+ const p = typeof params === "function"
4351
+ ? params(data)
4352
+ : typeof params === "string"
4353
+ ? { message: params }
4354
+ : params;
4355
+ const p2 = typeof p === "string" ? { message: p } : p;
4356
+ return p2;
4357
+ }
4358
+ function custom(check, _params = {},
4343
4359
  /**
4344
4360
  * @deprecated
4345
4361
  *
@@ -4354,16 +4370,23 @@ fatal) {
4354
4370
  if (check)
4355
4371
  return ZodAny.create().superRefine((data, ctx) => {
4356
4372
  var _a, _b;
4357
- if (!check(data)) {
4358
- const p = typeof params === "function"
4359
- ? params(data)
4360
- : typeof params === "string"
4361
- ? { message: params }
4362
- : params;
4363
- const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4364
- const p2 = typeof p === "string" ? { message: p } : p;
4365
- ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
4373
+ const r = check(data);
4374
+ if (r instanceof Promise) {
4375
+ return r.then((r) => {
4376
+ var _a, _b;
4377
+ if (!r) {
4378
+ const params = cleanParams(_params, data);
4379
+ const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4380
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
4381
+ }
4382
+ });
4383
+ }
4384
+ if (!r) {
4385
+ const params = cleanParams(_params, data);
4386
+ const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4387
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
4366
4388
  }
4389
+ return;
4367
4390
  });
4368
4391
  return ZodAny.create();
4369
4392
  }
@@ -4552,7 +4575,7 @@ exports.NEVER = parseUtil_1.INVALID;
4552
4575
  /******/ // startup
4553
4576
  /******/ // Load entry module and return exports
4554
4577
  /******/ // This entry module is referenced by other modules so it can't be inlined
4555
- /******/ var __webpack_exports__ = __nccwpck_require__(656);
4578
+ /******/ var __webpack_exports__ = __nccwpck_require__(771);
4556
4579
  /******/ module.exports = __webpack_exports__;
4557
4580
  /******/
4558
4581
  /******/ })()
@@ -1 +1 @@
1
- {"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.1","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.2","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -8,7 +8,8 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type * as binding from "@rspack/binding";
11
- import { type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
11
+ import { type AssetInfo, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
12
+ export type { AssetInfo } from "@rspack/binding";
12
13
  import * as liteTapable from "@rspack/lite-tapable";
13
14
  import type { Source } from "../compiled/webpack-sources";
14
15
  import { Chunk } from "./Chunk";
@@ -31,10 +32,8 @@ import WebpackError from "./lib/WebpackError";
31
32
  import { Logger } from "./logging/Logger";
32
33
  import { StatsFactory } from "./stats/StatsFactory";
33
34
  import { StatsPrinter } from "./stats/StatsPrinter";
34
- import { type AssetInfo } from "./util/AssetInfo";
35
35
  import type { InputFileSystem } from "./util/fs";
36
36
  import type Hash from "./util/hash";
37
- export type { AssetInfo } from "./util/AssetInfo";
38
37
  export type Assets = Record<string, Source>;
39
38
  export interface Asset {
40
39
  name: string;
@@ -142,6 +142,11 @@ declare class Compiler {
142
142
  */
143
143
  createChildCompiler(compilation: Compilation, compilerName: string, compilerIndex: number, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler;
144
144
  isChild(): boolean;
145
+ /**
146
+ * Create a compilation and run it, which is the basic method that `compiler.run` and `compiler.watch` depend on.
147
+ * TODO: make this method private in the next major release
148
+ * @private this method is only used in Rspack core
149
+ */
145
150
  compile(callback: liteTapable.Callback<Error, Compilation>): void;
146
151
  close(callback: (error?: Error | null) => void): void;
147
152
  /**
package/dist/Module.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import type { JsCodegenerationResult, JsContextModuleFactoryAfterResolveData, JsContextModuleFactoryBeforeResolveData, JsCreateData, JsFactoryMeta, JsLibIdentOptions } from "@rspack/binding";
1
+ import type { AssetInfo, JsCodegenerationResult, JsContextModuleFactoryAfterResolveData, JsContextModuleFactoryBeforeResolveData, JsCreateData, JsFactoryMeta, JsLibIdentOptions } from "@rspack/binding";
2
2
  import type { JsModule } from "@rspack/binding";
3
3
  import type { Source } from "../compiled/webpack-sources";
4
4
  import { DependenciesBlock } from "./DependenciesBlock";
5
5
  import { Dependency } from "./Dependency";
6
- import { type AssetInfo } from "./util/AssetInfo";
7
6
  export type ResourceData = {
8
7
  resource: string;
9
8
  path: string;
@@ -85,7 +84,7 @@ export declare class Module {
85
84
  nameForCondition(): string | null;
86
85
  size(type?: string): number;
87
86
  libIdent(options: JsLibIdentOptions): string | null;
88
- emitFile(filename: string, source: Source, assetInfo: AssetInfo): void;
87
+ emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
89
88
  }
90
89
  export declare class CodeGenerationResult {
91
90
  #private;