@rolldown/browser 1.0.0-rc.6 → 1.0.0-rc.8
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.
- package/dist/cli.mjs +618 -196
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +9 -10
- package/dist/{constructors-WyngiSlS.js → constructors-BgL_dmUe.js} +2 -4
- package/dist/{error-D4EjR7H_.js → error-DkAP_6fk.js} +1 -6
- package/dist/experimental-index.browser.mjs +22 -19
- package/dist/experimental-index.d.mts +18 -4
- package/dist/experimental-index.mjs +24 -21
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -6
- package/dist/get-log-filter.mjs +1 -2
- package/dist/index.browser.mjs +67 -73
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -12
- package/dist/{normalize-string-or-regex-B0X1hEA4.js → normalize-string-or-regex-TtAGUp42.js} +5 -11
- package/dist/parallel-plugin-worker.mjs +6 -8
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.mjs +3 -5
- package/dist/plugins-index.browser.mjs +3 -5
- package/dist/plugins-index.mjs +3 -5
- package/dist/rolldown-binding.wasi-browser.js +0 -1
- package/dist/rolldown-binding.wasi.cjs +0 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DwnjyX40.js → rolldown-build-Clh1p2eh.js} +446 -522
- package/dist/shared/{bindingify-input-options-CSIYh5O4.mjs → bindingify-input-options-CxjTlvCV.mjs} +36 -56
- package/dist/shared/{composable-filters-C_jBPRPI.mjs → composable-filters-B2ByPP8y.mjs} +1 -4
- package/dist/shared/{constructors-B2viugwd.mjs → constructors-C7Kkidxk.mjs} +2 -4
- package/dist/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/shared/{define-config-DMEhSrNE.d.mts → define-config-TEoV5q6D.d.mts} +83 -29
- package/dist/shared/{error-DDzqVYr_.mjs → error-CQ6njWsV.mjs} +1 -4
- package/dist/shared/{load-config-CmC4WvoS.mjs → load-config-Cs9h9aXF.mjs} +2 -4
- package/dist/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/shared/{normalize-string-or-regex-FTOVR1Jb.mjs → normalize-string-or-regex-CF3Uz6aU.mjs} +2 -5
- package/dist/shared/{parse-DIZtKd4C.mjs → parse-DDUnGYGU.mjs} +1 -4
- package/dist/shared/{prompt-B56gTa4S.mjs → prompt-BYQIwEjg.mjs} +1 -3
- package/dist/shared/{rolldown-D7O5_axp.mjs → rolldown-D2p2QuF1.mjs} +2 -4
- package/dist/shared/{rolldown-build-BV90HQts.mjs → rolldown-build-D_FXM8pA.mjs} +426 -472
- package/dist/shared/{transform-D49mi4JH.mjs → transform-B_n5An0U.mjs} +2 -5
- package/dist/shared/{watch-COON6c2j.mjs → watch-BMFUc4Au.mjs} +69 -75
- package/dist/{transform-qJgOBSav.js → transform-UkHb5h4g.js} +2 -5
- package/dist/utils-index.browser.mjs +7 -16
- package/dist/utils-index.mjs +8 -17
- package/package.json +1 -1
- package/dist/cli-setup.d.mts +0 -1
- package/dist/cli-setup.mjs +0 -16
package/dist/shared/{bindingify-input-options-CSIYh5O4.mjs → bindingify-input-options-CxjTlvCV.mjs}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
2
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
-
import { _ as noop, a as id, b as unsupported, f as or, h as arraify, n as code, r as exclude, s as include, t as and, u as moduleType, y as unreachable } from "./composable-filters-
|
|
4
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
1
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
2
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CF3Uz6aU.mjs";
|
|
3
|
+
import { _ as noop, a as id, b as unsupported, f as or, h as arraify, n as code, r as exclude, s as include, t as and, u as moduleType, y as unreachable } from "./composable-filters-B2ByPP8y.mjs";
|
|
4
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
|
|
5
5
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
6
6
|
import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
9
|
-
|
|
10
9
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-rc.
|
|
10
|
+
var version = "1.0.0-rc.8";
|
|
12
11
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
//#region src/constants/version.ts
|
|
16
14
|
/**
|
|
@@ -20,14 +18,12 @@ var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compat
|
|
|
20
18
|
* @category Plugin APIs
|
|
21
19
|
*/
|
|
22
20
|
const VERSION = version;
|
|
23
|
-
|
|
24
21
|
//#endregion
|
|
25
22
|
//#region src/constants/index.ts
|
|
26
23
|
/**
|
|
27
24
|
* Runtime helper module ID
|
|
28
25
|
*/
|
|
29
26
|
const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
|
|
30
|
-
|
|
31
27
|
//#endregion
|
|
32
28
|
//#region src/log/logging.ts
|
|
33
29
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -41,7 +37,6 @@ const logLevelPriority = {
|
|
|
41
37
|
[LOG_LEVEL_WARN]: 2,
|
|
42
38
|
[LOG_LEVEL_SILENT]: 3
|
|
43
39
|
};
|
|
44
|
-
|
|
45
40
|
//#endregion
|
|
46
41
|
//#region src/log/log-handler.ts
|
|
47
42
|
const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
|
|
@@ -56,7 +51,6 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
56
51
|
logger(level, log);
|
|
57
52
|
};
|
|
58
53
|
}
|
|
59
|
-
|
|
60
54
|
//#endregion
|
|
61
55
|
//#region src/utils/normalize-hook.ts
|
|
62
56
|
function normalizeHook(hook) {
|
|
@@ -75,7 +69,6 @@ function normalizeHook(hook) {
|
|
|
75
69
|
}
|
|
76
70
|
unreachable("Invalid hook type");
|
|
77
71
|
}
|
|
78
|
-
|
|
79
72
|
//#endregion
|
|
80
73
|
//#region src/plugin/minimal-plugin-context.ts
|
|
81
74
|
var MinimalPluginContextImpl = class {
|
|
@@ -99,7 +92,6 @@ var MinimalPluginContextImpl = class {
|
|
|
99
92
|
return error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
100
93
|
}
|
|
101
94
|
};
|
|
102
|
-
|
|
103
95
|
//#endregion
|
|
104
96
|
//#region src/types/plain-object-like.ts
|
|
105
97
|
const LAZY_FIELDS_KEY = Symbol("__lazy_fields__");
|
|
@@ -178,7 +170,6 @@ function getLazyFields(instance) {
|
|
|
178
170
|
const lazyFields = instance.constructor[LAZY_FIELDS_KEY];
|
|
179
171
|
return lazyFields ? new Set(lazyFields.keys()) : /* @__PURE__ */ new Set();
|
|
180
172
|
}
|
|
181
|
-
|
|
182
173
|
//#endregion
|
|
183
174
|
//#region src/decorators/lazy.ts
|
|
184
175
|
/**
|
|
@@ -216,7 +207,6 @@ function lazyProp(target, propertyKey, descriptor) {
|
|
|
216
207
|
configurable: true
|
|
217
208
|
};
|
|
218
209
|
}
|
|
219
|
-
|
|
220
210
|
//#endregion
|
|
221
211
|
//#region src/utils/asset-source.ts
|
|
222
212
|
function transformAssetSource(bindingAssetSource) {
|
|
@@ -225,7 +215,6 @@ function transformAssetSource(bindingAssetSource) {
|
|
|
225
215
|
function bindingAssetSource(source) {
|
|
226
216
|
return { inner: source };
|
|
227
217
|
}
|
|
228
|
-
|
|
229
218
|
//#endregion
|
|
230
219
|
//#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
|
|
231
220
|
function __decorate(decorators, target, key, desc) {
|
|
@@ -234,7 +223,6 @@ function __decorate(decorators, target, key, desc) {
|
|
|
234
223
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
235
224
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
236
225
|
}
|
|
237
|
-
|
|
238
226
|
//#endregion
|
|
239
227
|
//#region src/types/output-asset-impl.ts
|
|
240
228
|
var OutputAssetImpl = class extends PlainObjectLike {
|
|
@@ -275,7 +263,6 @@ __decorate([lazyProp], OutputAssetImpl.prototype, "originalFileNames", null);
|
|
|
275
263
|
__decorate([lazyProp], OutputAssetImpl.prototype, "name", null);
|
|
276
264
|
__decorate([lazyProp], OutputAssetImpl.prototype, "names", null);
|
|
277
265
|
__decorate([lazyProp], OutputAssetImpl.prototype, "source", null);
|
|
278
|
-
|
|
279
266
|
//#endregion
|
|
280
267
|
//#region src/utils/transform-rendered-module.ts
|
|
281
268
|
function transformToRenderedModule(bindingRenderedModule) {
|
|
@@ -291,7 +278,6 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
291
278
|
}
|
|
292
279
|
};
|
|
293
280
|
}
|
|
294
|
-
|
|
295
281
|
//#endregion
|
|
296
282
|
//#region src/utils/transform-rendered-chunk.ts
|
|
297
283
|
function transformRenderedChunk(chunk) {
|
|
@@ -340,7 +326,6 @@ function transformChunkModules(modules) {
|
|
|
340
326
|
}
|
|
341
327
|
return result;
|
|
342
328
|
}
|
|
343
|
-
|
|
344
329
|
//#endregion
|
|
345
330
|
//#region src/types/output-chunk-impl.ts
|
|
346
331
|
var OutputChunkImpl = class extends PlainObjectLike {
|
|
@@ -414,7 +399,6 @@ __decorate([lazyProp], OutputChunkImpl.prototype, "imports", null);
|
|
|
414
399
|
__decorate([lazyProp], OutputChunkImpl.prototype, "dynamicImports", null);
|
|
415
400
|
__decorate([lazyProp], OutputChunkImpl.prototype, "moduleIds", null);
|
|
416
401
|
__decorate([lazyProp], OutputChunkImpl.prototype, "map", null);
|
|
417
|
-
|
|
418
402
|
//#endregion
|
|
419
403
|
//#region src/utils/transform-to-rollup-output.ts
|
|
420
404
|
function transformToRollupSourceMap(map) {
|
|
@@ -574,7 +558,6 @@ function collectChangedBundle(changed, bundle) {
|
|
|
574
558
|
deleted: changed.deleted
|
|
575
559
|
};
|
|
576
560
|
}
|
|
577
|
-
|
|
578
561
|
//#endregion
|
|
579
562
|
//#region src/utils/transform-module-info.ts
|
|
580
563
|
function transformModuleInfo(info, option) {
|
|
@@ -596,7 +579,6 @@ function transformModuleInfo(info, option) {
|
|
|
596
579
|
...option
|
|
597
580
|
};
|
|
598
581
|
}
|
|
599
|
-
|
|
600
582
|
//#endregion
|
|
601
583
|
//#region src/utils/transform-sourcemap.ts
|
|
602
584
|
function isEmptySourcemapFiled(array) {
|
|
@@ -611,7 +593,6 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
611
593
|
if (isEmptySourcemapFiled(map.sources) || map.sources && map.sources.length === 1 && map.sources[0] !== id) map.sources = [id];
|
|
612
594
|
return map;
|
|
613
595
|
}
|
|
614
|
-
|
|
615
596
|
//#endregion
|
|
616
597
|
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
617
598
|
function e(e, t, n) {
|
|
@@ -621,7 +602,6 @@ function e(e, t, n) {
|
|
|
621
602
|
lazyArgs: t
|
|
622
603
|
});
|
|
623
604
|
}
|
|
624
|
-
|
|
625
605
|
//#endregion
|
|
626
606
|
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/purry.js
|
|
627
607
|
function t$1(t, n, r) {
|
|
@@ -630,7 +610,6 @@ function t$1(t, n, r) {
|
|
|
630
610
|
if (i === 1) return e(t, n, r);
|
|
631
611
|
throw Error(`Wrong number of arguments`);
|
|
632
612
|
}
|
|
633
|
-
|
|
634
613
|
//#endregion
|
|
635
614
|
//#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/partition.js
|
|
636
615
|
function t(...t) {
|
|
@@ -641,7 +620,6 @@ const n = (e, t) => {
|
|
|
641
620
|
for (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);
|
|
642
621
|
return n;
|
|
643
622
|
};
|
|
644
|
-
|
|
645
623
|
//#endregion
|
|
646
624
|
//#region src/plugin/bindingify-hook-filter.ts
|
|
647
625
|
function generalHookFilterMatcherToFilterExprs(matcher, stringKind) {
|
|
@@ -803,7 +781,6 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
803
781
|
}
|
|
804
782
|
return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
|
|
805
783
|
}
|
|
806
|
-
|
|
807
784
|
//#endregion
|
|
808
785
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
809
786
|
function bindingifyPluginHookMeta(options) {
|
|
@@ -818,7 +795,6 @@ function bindingPluginOrder(order) {
|
|
|
818
795
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
819
796
|
}
|
|
820
797
|
}
|
|
821
|
-
|
|
822
798
|
//#endregion
|
|
823
799
|
//#region src/plugin/fs.ts
|
|
824
800
|
const fsModule = {
|
|
@@ -836,7 +812,6 @@ const fsModule = {
|
|
|
836
812
|
unlink: fsp.unlink,
|
|
837
813
|
writeFile: fsp.writeFile
|
|
838
814
|
};
|
|
839
|
-
|
|
840
815
|
//#endregion
|
|
841
816
|
//#region src/plugin/plugin-context.ts
|
|
842
817
|
var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
@@ -944,7 +919,6 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
944
919
|
return parseAst(input, options);
|
|
945
920
|
}
|
|
946
921
|
};
|
|
947
|
-
|
|
948
922
|
//#endregion
|
|
949
923
|
//#region src/plugin/load-plugin-context.ts
|
|
950
924
|
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
@@ -956,7 +930,6 @@ var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
|
956
930
|
this.inner.addWatchFile(id);
|
|
957
931
|
}
|
|
958
932
|
};
|
|
959
|
-
|
|
960
933
|
//#endregion
|
|
961
934
|
//#region src/plugin/transform-plugin-context.ts
|
|
962
935
|
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
@@ -993,7 +966,6 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
993
966
|
this.inner.sendMagicString(s);
|
|
994
967
|
}
|
|
995
968
|
};
|
|
996
|
-
|
|
997
969
|
//#endregion
|
|
998
970
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
999
971
|
function createPluginContext(args, ctx) {
|
|
@@ -1196,7 +1168,6 @@ function bindingifyModuleParsed(args) {
|
|
|
1196
1168
|
meta: bindingifyPluginHookMeta(meta)
|
|
1197
1169
|
};
|
|
1198
1170
|
}
|
|
1199
|
-
|
|
1200
1171
|
//#endregion
|
|
1201
1172
|
//#region src/plugin/bindingify-output-hooks.ts
|
|
1202
1173
|
function bindingifyRenderStart(args) {
|
|
@@ -1393,7 +1364,6 @@ function bindingifyOutro(args) {
|
|
|
1393
1364
|
meta: bindingifyPluginHookMeta(meta)
|
|
1394
1365
|
};
|
|
1395
1366
|
}
|
|
1396
|
-
|
|
1397
1367
|
//#endregion
|
|
1398
1368
|
//#region src/plugin/bindingify-watch-hooks.ts
|
|
1399
1369
|
function bindingifyWatchChange(args) {
|
|
@@ -1418,7 +1388,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
1418
1388
|
meta: bindingifyPluginHookMeta(meta)
|
|
1419
1389
|
};
|
|
1420
1390
|
}
|
|
1421
|
-
|
|
1422
1391
|
//#endregion
|
|
1423
1392
|
//#region src/plugin/generated/hook-usage.ts
|
|
1424
1393
|
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
@@ -1479,7 +1448,6 @@ function extractHookUsage(plugin) {
|
|
|
1479
1448
|
if (plugin.outro) hookUsage.union(HookUsageKind.outro);
|
|
1480
1449
|
return hookUsage;
|
|
1481
1450
|
}
|
|
1482
|
-
|
|
1483
1451
|
//#endregion
|
|
1484
1452
|
//#region src/plugin/bindingify-plugin.ts
|
|
1485
1453
|
function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
@@ -1600,14 +1568,14 @@ function wrapHandlers(plugin) {
|
|
|
1600
1568
|
}
|
|
1601
1569
|
return plugin;
|
|
1602
1570
|
}
|
|
1603
|
-
|
|
1604
1571
|
//#endregion
|
|
1605
1572
|
//#region src/options/normalized-input-options.ts
|
|
1606
1573
|
var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
1607
1574
|
inner;
|
|
1608
|
-
constructor(inner, onLog) {
|
|
1575
|
+
constructor(inner, onLog, inputPlugins) {
|
|
1609
1576
|
super();
|
|
1610
1577
|
this.onLog = onLog;
|
|
1578
|
+
this.inputPlugins = inputPlugins;
|
|
1611
1579
|
this.inner = inner;
|
|
1612
1580
|
}
|
|
1613
1581
|
get shimMissingExports() {
|
|
@@ -1625,13 +1593,15 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
1625
1593
|
get context() {
|
|
1626
1594
|
return this.inner.context;
|
|
1627
1595
|
}
|
|
1596
|
+
get plugins() {
|
|
1597
|
+
return this.inputPlugins;
|
|
1598
|
+
}
|
|
1628
1599
|
};
|
|
1629
1600
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "shimMissingExports", null);
|
|
1630
1601
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "input", null);
|
|
1631
1602
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "cwd", null);
|
|
1632
1603
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "platform", null);
|
|
1633
1604
|
__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
|
|
1634
|
-
|
|
1635
1605
|
//#endregion
|
|
1636
1606
|
//#region src/options/normalized-output-options.ts
|
|
1637
1607
|
var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
@@ -1816,7 +1786,6 @@ function normalizeAddon(value) {
|
|
|
1816
1786
|
if (typeof value === "function") return value;
|
|
1817
1787
|
return () => value || "";
|
|
1818
1788
|
}
|
|
1819
|
-
|
|
1820
1789
|
//#endregion
|
|
1821
1790
|
//#region src/plugin/plugin-context-data.ts
|
|
1822
1791
|
var PluginContextData = class {
|
|
@@ -1826,9 +1795,10 @@ var PluginContextData = class {
|
|
|
1826
1795
|
renderedChunkMeta = null;
|
|
1827
1796
|
normalizedInputOptions = null;
|
|
1828
1797
|
normalizedOutputOptions = null;
|
|
1829
|
-
constructor(onLog, outputOptions, normalizedOutputPlugins) {
|
|
1798
|
+
constructor(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins) {
|
|
1830
1799
|
this.onLog = onLog;
|
|
1831
1800
|
this.outputOptions = outputOptions;
|
|
1801
|
+
this.normalizedInputPlugins = normalizedInputPlugins;
|
|
1832
1802
|
this.normalizedOutputPlugins = normalizedOutputPlugins;
|
|
1833
1803
|
}
|
|
1834
1804
|
updateModuleOption(id, option) {
|
|
@@ -1901,7 +1871,7 @@ var PluginContextData = class {
|
|
|
1901
1871
|
return this.renderedChunkMeta;
|
|
1902
1872
|
}
|
|
1903
1873
|
getInputOptions(opts) {
|
|
1904
|
-
this.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog);
|
|
1874
|
+
this.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog, this.normalizedInputPlugins);
|
|
1905
1875
|
return this.normalizedInputOptions;
|
|
1906
1876
|
}
|
|
1907
1877
|
getOutputOptions(opts) {
|
|
@@ -1913,7 +1883,6 @@ var PluginContextData = class {
|
|
|
1913
1883
|
this.loadModulePromiseMap.clear();
|
|
1914
1884
|
}
|
|
1915
1885
|
};
|
|
1916
|
-
|
|
1917
1886
|
//#endregion
|
|
1918
1887
|
//#region src/utils/normalize-transform-options.ts
|
|
1919
1888
|
/**
|
|
@@ -1941,11 +1910,10 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1941
1910
|
oxcTransformOptions
|
|
1942
1911
|
};
|
|
1943
1912
|
}
|
|
1944
|
-
|
|
1945
1913
|
//#endregion
|
|
1946
1914
|
//#region src/utils/bindingify-input-options.ts
|
|
1947
|
-
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1948
|
-
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1915
|
+
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedInputPlugins, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1916
|
+
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins);
|
|
1949
1917
|
const plugins = rawPlugins.map((plugin) => {
|
|
1950
1918
|
if ("_parallel" in plugin) return;
|
|
1951
1919
|
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
@@ -2104,13 +2072,26 @@ function bindingifyInput(input) {
|
|
|
2104
2072
|
});
|
|
2105
2073
|
}
|
|
2106
2074
|
function bindingifyWatch(watch) {
|
|
2107
|
-
if (watch)
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2075
|
+
if (watch) {
|
|
2076
|
+
if (watch.notify) console.warn("The \"watch.notify\" option is deprecated. Please use \"watch.watcher\" instead.");
|
|
2077
|
+
const watcher = {
|
|
2078
|
+
...watch.notify,
|
|
2079
|
+
...watch.watcher
|
|
2080
|
+
};
|
|
2081
|
+
return {
|
|
2082
|
+
buildDelay: watch.buildDelay,
|
|
2083
|
+
skipWrite: watch.skipWrite,
|
|
2084
|
+
usePolling: watcher.usePolling,
|
|
2085
|
+
pollInterval: watcher.pollInterval,
|
|
2086
|
+
compareContentsForPolling: watcher.compareContentsForPolling,
|
|
2087
|
+
useDebounce: watcher.useDebounce,
|
|
2088
|
+
debounceDelay: watcher.debounceDelay,
|
|
2089
|
+
debounceTickRate: watcher.debounceTickRate,
|
|
2090
|
+
include: normalizedStringOrRegex(watch.include),
|
|
2091
|
+
exclude: normalizedStringOrRegex(watch.exclude),
|
|
2092
|
+
onInvalidate: (...args) => watch.onInvalidate?.(...args)
|
|
2093
|
+
};
|
|
2094
|
+
}
|
|
2114
2095
|
}
|
|
2115
2096
|
function bindingifyTreeshakeOptions(config) {
|
|
2116
2097
|
if (config === false) return;
|
|
@@ -2170,6 +2151,5 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2170
2151
|
field0: preserveEntrySignatures
|
|
2171
2152
|
};
|
|
2172
2153
|
}
|
|
2173
|
-
|
|
2174
2154
|
//#endregion
|
|
2175
|
-
export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
|
|
2155
|
+
export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
|
|
@@ -17,7 +17,6 @@ function unsupported(info) {
|
|
|
17
17
|
throw new Error(`UNSUPPORTED: ${info}`);
|
|
18
18
|
}
|
|
19
19
|
function noop(..._args) {}
|
|
20
|
-
|
|
21
20
|
//#endregion
|
|
22
21
|
//#region ../pluginutils/dist/utils.js
|
|
23
22
|
const postfixRE = /[?#].*$/;
|
|
@@ -31,7 +30,6 @@ function extractQueryWithoutFragment(url) {
|
|
|
31
30
|
if (fragmentIndex === -1) return url.substring(questionMarkIndex);
|
|
32
31
|
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
34
|
//#region ../pluginutils/dist/filter/composable-filters.js
|
|
37
35
|
var And = class {
|
|
@@ -222,6 +220,5 @@ function exprInterpreter(expr, code, id, moduleType, importerId, ctx = {}) {
|
|
|
222
220
|
default: throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);
|
|
223
221
|
}
|
|
224
222
|
}
|
|
225
|
-
|
|
226
223
|
//#endregion
|
|
227
|
-
export { noop as _, id as a, unsupported as b, interpreter as c, not as d, or as f, isPromiseLike as g, arraify as h, exprInterpreter as i, interpreterImpl as l, query as m, code as n, importerId as o, queries as p, exclude as r, include as s, and as t, moduleType as u, unimplemented as v, unreachable as y };
|
|
224
|
+
export { noop as _, id as a, unsupported as b, interpreter as c, not as d, or as f, isPromiseLike as g, arraify as h, exprInterpreter as i, interpreterImpl as l, query as m, code as n, importerId as o, queries as p, exclude as r, include as s, and as t, moduleType as u, unimplemented as v, unreachable as y };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
2
|
-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CF3Uz6aU.mjs";
|
|
3
2
|
//#region src/builtin-plugin/constructors.ts
|
|
4
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
5
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -59,6 +58,5 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
59
58
|
}
|
|
60
59
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
62
|
+
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
@@ -923,6 +923,18 @@ interface OutputOptions {
|
|
|
923
923
|
* @default false
|
|
924
924
|
*/
|
|
925
925
|
strictExecutionOrder?: boolean;
|
|
926
|
+
/**
|
|
927
|
+
* Whether to always output `"use strict"` directive in non-ES module outputs.
|
|
928
|
+
*
|
|
929
|
+
* - `true` - Always emit `"use strict"` at the top of the output (not applicable for ESM format since ESM is always strict).
|
|
930
|
+
* - `false` - Never emit `"use strict"` in the output.
|
|
931
|
+
* - `'auto'` - Respect the `"use strict"` directives from the source code.
|
|
932
|
+
*
|
|
933
|
+
* See [In-depth directive guide](https://rolldown.rs/in-depth/directives) for more details.
|
|
934
|
+
*
|
|
935
|
+
* @default 'auto'
|
|
936
|
+
*/
|
|
937
|
+
strict?: boolean | "auto";
|
|
926
938
|
}
|
|
927
939
|
type CodeSplittingGroup = {
|
|
928
940
|
/**
|
|
@@ -1198,7 +1210,7 @@ declare class RolldownBuild {
|
|
|
1198
1210
|
*
|
|
1199
1211
|
* @param outputOptions The output options.
|
|
1200
1212
|
* @returns The generated bundle.
|
|
1201
|
-
* @throws {@linkcode
|
|
1213
|
+
* @throws {@linkcode BundleError} When an error occurs during the build.
|
|
1202
1214
|
*/
|
|
1203
1215
|
generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
1204
1216
|
/**
|
|
@@ -1208,7 +1220,7 @@ declare class RolldownBuild {
|
|
|
1208
1220
|
*
|
|
1209
1221
|
* @param outputOptions The output options.
|
|
1210
1222
|
* @returns The generated bundle.
|
|
1211
|
-
* @throws {@linkcode
|
|
1223
|
+
* @throws {@linkcode BundleError} When an error occurs during the build.
|
|
1212
1224
|
*/
|
|
1213
1225
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
1214
1226
|
/**
|
|
@@ -1654,6 +1666,8 @@ interface NormalizedInputOptions {
|
|
|
1654
1666
|
shimMissingExports: boolean;
|
|
1655
1667
|
/** @see {@linkcode InputOptions.context | context} */
|
|
1656
1668
|
context: string;
|
|
1669
|
+
/** @see {@linkcode InputOptions.plugins | plugins} */
|
|
1670
|
+
plugins: RolldownPlugin[];
|
|
1657
1671
|
}
|
|
1658
1672
|
//#endregion
|
|
1659
1673
|
//#region src/options/normalized-output-options.d.ts
|
|
@@ -2417,6 +2431,19 @@ interface ExistingRawSourceMap {
|
|
|
2417
2431
|
/** @inline @category Plugin APIs */
|
|
2418
2432
|
type SourceMapInput = ExistingRawSourceMap | string | null;
|
|
2419
2433
|
//#endregion
|
|
2434
|
+
//#region src/utils/error.d.ts
|
|
2435
|
+
/**
|
|
2436
|
+
* The error type that is thrown by Rolldown for the whole build.
|
|
2437
|
+
*/
|
|
2438
|
+
type BundleError = Error & {
|
|
2439
|
+
/**
|
|
2440
|
+
* The individual errors that happened during the build.
|
|
2441
|
+
*
|
|
2442
|
+
* This property is a getter to avoid unnecessary expansion of error details when the error is logged.
|
|
2443
|
+
*/
|
|
2444
|
+
errors?: RolldownError[];
|
|
2445
|
+
};
|
|
2446
|
+
//#endregion
|
|
2420
2447
|
//#region src/constants/version.d.ts
|
|
2421
2448
|
/**
|
|
2422
2449
|
* The version of Rolldown.
|
|
@@ -3065,6 +3092,52 @@ type ExternalOptionFunction = (id: string, parentId: string | undefined, isResol
|
|
|
3065
3092
|
/** @inline */
|
|
3066
3093
|
type ExternalOption = StringOrRegExp$1 | StringOrRegExp$1[] | ExternalOptionFunction;
|
|
3067
3094
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
3095
|
+
interface WatcherFileWatcherOptions {
|
|
3096
|
+
/**
|
|
3097
|
+
* Whether to use polling-based file watching instead of native OS events.
|
|
3098
|
+
*
|
|
3099
|
+
* Polling is useful for environments where native FS events are unreliable,
|
|
3100
|
+
* such as network mounts, Docker volumes, or WSL2.
|
|
3101
|
+
*
|
|
3102
|
+
* @default false
|
|
3103
|
+
*/
|
|
3104
|
+
usePolling?: boolean;
|
|
3105
|
+
/**
|
|
3106
|
+
* Interval between each poll in milliseconds.
|
|
3107
|
+
*
|
|
3108
|
+
* This option is only used when {@linkcode usePolling} is `true`.
|
|
3109
|
+
*
|
|
3110
|
+
* @default 100
|
|
3111
|
+
*/
|
|
3112
|
+
pollInterval?: number;
|
|
3113
|
+
/**
|
|
3114
|
+
* Whether to compare file contents for poll-based watchers.
|
|
3115
|
+
* When enabled, poll watchers will check file contents to determine if they actually changed.
|
|
3116
|
+
*
|
|
3117
|
+
* This option is only used when {@linkcode usePolling} is `true`.
|
|
3118
|
+
*
|
|
3119
|
+
* @default false
|
|
3120
|
+
*/
|
|
3121
|
+
compareContentsForPolling?: boolean;
|
|
3122
|
+
/**
|
|
3123
|
+
* Whether to use debounced event delivery at the filesystem level.
|
|
3124
|
+
* This coalesces rapid filesystem events before they reach the build coordinator.
|
|
3125
|
+
* @default false
|
|
3126
|
+
*/
|
|
3127
|
+
useDebounce?: boolean;
|
|
3128
|
+
/**
|
|
3129
|
+
* Debounce delay in milliseconds for fs-level debounced watchers.
|
|
3130
|
+
* Only used when {@linkcode useDebounce} is `true`.
|
|
3131
|
+
* @default 10
|
|
3132
|
+
*/
|
|
3133
|
+
debounceDelay?: number;
|
|
3134
|
+
/**
|
|
3135
|
+
* Tick rate in milliseconds for the debouncer's internal polling.
|
|
3136
|
+
* Only used when {@linkcode useDebounce} is `true`.
|
|
3137
|
+
* When undefined, auto-selects 1/4 of debounceDelay.
|
|
3138
|
+
*/
|
|
3139
|
+
debounceTickRate?: number;
|
|
3140
|
+
}
|
|
3068
3141
|
interface WatcherOptions {
|
|
3069
3142
|
/**
|
|
3070
3143
|
* Whether to skip the {@linkcode RolldownBuild.write | bundle.write()} step when a rebuild is triggered.
|
|
@@ -3090,32 +3163,13 @@ interface WatcherOptions {
|
|
|
3090
3163
|
*/
|
|
3091
3164
|
buildDelay?: number;
|
|
3092
3165
|
/**
|
|
3093
|
-
*
|
|
3166
|
+
* File watcher options for configuring how file changes are detected.
|
|
3094
3167
|
*/
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
*
|
|
3101
|
-
* @default 30_000
|
|
3102
|
-
*/
|
|
3103
|
-
pollInterval?: number;
|
|
3104
|
-
/**
|
|
3105
|
-
* Whether to compare file contents when checking for changes.
|
|
3106
|
-
*
|
|
3107
|
-
* This is especially important for pseudo filesystems like those on Linux
|
|
3108
|
-
* under `/sys` and `/proc` which are not obligated to respect any other
|
|
3109
|
-
* filesystem norms such as modification timestamps, file sizes, etc. By
|
|
3110
|
-
* enabling this feature, performance will be significantly impacted as
|
|
3111
|
-
* all files will need to be read and hashed at each interval.
|
|
3112
|
-
*
|
|
3113
|
-
* This option is only used when polling backend is used.
|
|
3114
|
-
*
|
|
3115
|
-
* @default false
|
|
3116
|
-
*/
|
|
3117
|
-
compareContents?: boolean;
|
|
3118
|
-
};
|
|
3168
|
+
watcher?: WatcherFileWatcherOptions;
|
|
3169
|
+
/**
|
|
3170
|
+
* @deprecated Use {@linkcode watcher} instead.
|
|
3171
|
+
*/
|
|
3172
|
+
notify?: WatcherFileWatcherOptions;
|
|
3119
3173
|
/**
|
|
3120
3174
|
* Filter to limit the file-watching to certain files.
|
|
3121
3175
|
*
|
|
@@ -3217,7 +3271,7 @@ type OptimizationOptions = {
|
|
|
3217
3271
|
* console.log(API_URL);
|
|
3218
3272
|
* ```
|
|
3219
3273
|
*
|
|
3220
|
-
* @default
|
|
3274
|
+
* @default { mode: 'smart', pass: 1 }
|
|
3221
3275
|
*/
|
|
3222
3276
|
inlineConst?: boolean | {
|
|
3223
3277
|
mode?: "all" | "smart";
|
|
@@ -3781,4 +3835,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3781
3835
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3782
3836
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3783
3837
|
//#endregion
|
|
3784
|
-
export {
|
|
3838
|
+
export { RUNTIME_MODULE_ID as $, MinifyOptions$1 as $t, SourceDescription as A, LoggingFunction as At, exprInterpreter as B, build as Bt, PartialResolvedId as C, RolldownFileStats as Ct, ResolvedId as D, NormalizedInputOptions as Dt, ResolveIdResult as E, NormalizedOutputOptions as Et, QueryFilterObject as F, RolldownWatcherWatcherEventMap as Ft, interpreterImpl as G, ChunkingContext as Gt, importerId as H, AdvancedChunksGroup as Ht, TopLevelFilterExpression as I, WatchOptions as It, or as J, CodeSplittingOptions as Jt, moduleType as K, CodeSplittingGroup as Kt, and as L, rolldown as Lt, withFilter as M, watch as Mt, FilterExpression as N, RolldownWatcher as Nt, RolldownPlugin as O, TransformOptions$1 as Ot, FilterExpressionKind as P, RolldownWatcherEvent as Pt, PreRenderedChunk$1 as Q, GlobalsFunction as Qt, code as R, RolldownBuild as Rt, ParallelPluginHooks as S, RolldownDirectoryEntry as St, ResolveIdExtraOptions as T, InternalModuleFormat as Tt, include as U, AdvancedChunksOptions as Ut, id as V, AddonFunction as Vt, interpreter as W, ChunkFileNamesFunction as Wt, query as X, GeneratedCodeOptions as Xt, queries as Y, CommentsOptions as Yt, BindingMagicString$1 as Z, GeneratedCodePreset as Zt, ImportKind as _, PluginContextMeta as _t, ExternalOption as a, RenderedChunk as an, TreeshakingOptions as at, ModuleType as b, ModuleTypeFilter as bt, InputOptions as c, SourceMap$1 as cn, EmittedChunk as ct, WatcherFileWatcherOptions as d, SourcemapIgnoreListOption as dn, GetModuleInfo as dt, ModuleFormat as en, VERSION as et, WatcherOptions as f, PluginContext as ft, HookFilterExtension as g, MinimalPluginContext as gt, FunctionPluginHooks as h, defineParallelPlugin as ht, RolldownOptions as i, OutputChunk as in, OutputBundle as it, TransformResult as j, WarningHandlerWithDefault as jt, RolldownPluginOption as k, ChecksOptions as kt, ModuleTypes as l, freeExternalMemory as ln, EmittedFile as lt, CustomPluginOptions as m, DefineParallelPluginResult as mt, RolldownOptionsFunction as n, PreRenderedAsset as nn, ExistingRawSourceMap as nt, ExternalOptionFunction as o, RenderedModule as on, TransformPluginContext as ot, AsyncPluginHooks as p, PluginContextResolveOptions as pt, not as q, CodeSplittingNameFunction as qt, defineConfig as r, OutputAsset as rn, SourceMapInput as rt, InputOption as s, RolldownOutput as sn, EmittedAsset as st, ConfigExport as t, OutputOptions as tn, BundleError as tt, OptimizationOptions as u, ModuleInfo as un, EmittedPrebuiltChunk as ut, LoadResult as v, GeneralHookFilter as vt, Plugin as w, RolldownFsModule as wt, ObjectHook as x, BufferEncoding as xt, ModuleOptions as y, HookFilter as yt, exclude as z, BuildOptions as zt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "../rolldown-binding.wasi.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/types/sourcemap.ts
|
|
4
3
|
function bindingifySourcemap(map) {
|
|
5
4
|
if (map == null) return;
|
|
@@ -14,7 +13,6 @@ function bindingifySourcemap(map) {
|
|
|
14
13
|
debugId: "debugId" in map ? map.debugId : void 0
|
|
15
14
|
} };
|
|
16
15
|
}
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
17
|
//#region src/utils/error.ts
|
|
20
18
|
function unwrapBindingResult(container) {
|
|
@@ -84,6 +82,5 @@ function getErrorMessage(e) {
|
|
|
84
82
|
function joinNewLine(s1, s2) {
|
|
85
83
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
86
84
|
}
|
|
87
|
-
|
|
88
85
|
//#endregion
|
|
89
|
-
export { bindingifySourcemap as a, unwrapBindingResult as i, normalizeBindingError as n, normalizeBindingResult as r, aggregateBindingErrorsIntoJsError as t };
|
|
86
|
+
export { bindingifySourcemap as a, unwrapBindingResult as i, normalizeBindingError as n, normalizeBindingResult as r, aggregateBindingErrorsIntoJsError as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as rolldown } from "./rolldown-
|
|
1
|
+
import { t as rolldown } from "./rolldown-D2p2QuF1.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { readdir } from "node:fs/promises";
|
|
4
4
|
import { cwd } from "node:process";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
import fs from "node:fs";
|
|
7
|
-
|
|
8
7
|
//#region src/utils/load-config.ts
|
|
9
8
|
async function bundleTsConfig(configFile, isEsm) {
|
|
10
9
|
const dirnameVarName = "injected_original_dirname";
|
|
@@ -117,6 +116,5 @@ async function loadConfig(configPath) {
|
|
|
117
116
|
throw new Error("Error happened while loading config.", { cause: err });
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
|
-
|
|
121
119
|
//#endregion
|
|
122
|
-
export { loadConfig as t };
|
|
120
|
+
export { loadConfig as t };
|