@rolldown/browser 1.0.0 → 1.0.2
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 +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/{constructors-BXVEHwHm.js → constructors-B3MtwuwE.js} +1 -1
- package/dist/{error-DMfKBGWU.js → error-u6fgq_tm.js} +1 -1
- package/dist/experimental-index.browser.mjs +8 -6
- package/dist/experimental-index.d.mts +21 -5
- package/dist/experimental-index.mjs +10 -8
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +3 -3
- package/dist/get-log-filter.d.mts +3 -3
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/{resolve-tsconfig-eqfrsvjc.js → resolve-tsconfig-DDQjQ68j.js} +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-CKS7EawU.js → rolldown-build-D3Q68dCD.js} +48 -70
- package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-Dh93Higz.mjs} +10 -10
- package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-BcLvc0mh.mjs} +2 -2
- package/dist/shared/{constructors-B1JYJxhf.d.mts → constructors-DbOoVFJG.d.mts} +2 -2
- package/dist/shared/{constructors-DO36gIcC.mjs → constructors-YQsI-lJq.mjs} +1 -1
- package/dist/shared/{define-config-Bah0mfyR.d.mts → define-config-CgQHLEzf.d.mts} +68 -16
- package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
- package/dist/shared/{load-config-BwBgui4p.mjs → load-config-CYjpnIlH.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Dq6w-2tU.mjs → normalize-string-or-regex-CHVaSqeF.mjs} +1 -1
- package/dist/shared/{parse-Lc1YQk0q.mjs → parse-Vf7R2RjR.mjs} +1 -1
- package/dist/shared/{resolve-tsconfig-Cwoo4h_o.mjs → resolve-tsconfig-D8Galy_A.mjs} +1 -1
- package/dist/shared/{rolldown-WowDTCZP.mjs → rolldown-BFjamCgT.mjs} +1 -1
- package/dist/shared/{rolldown-build-DIb-iqkO.mjs → rolldown-build-BodFrzFa.mjs} +41 -62
- package/dist/shared/{transform-kP3ISMFT.d.mts → transform-DEcsn5bq.d.mts} +2 -2
- package/dist/shared/{utils-KRVeJqya.d.mts → utils-CA_QYuaU.d.mts} +1 -1
- package/dist/shared/{watch-B81_EvN-.mjs → watch-Dt8HdCIN.mjs} +5 -5
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -5
- package/package.json +1 -1
- /package/dist/{normalize-string-or-regex-CBPw_c5O.js → normalize-string-or-regex-A9UIvc9j.js} +0 -0
- /package/dist/shared/{binding-CaVxb0SV.d.mts → binding-Ba2kzvIy.d.mts} +0 -0
- /package/dist/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
- /package/dist/shared/{error-CQ6njWsV.mjs → error-B5cMIevi.mjs} +0 -0
- /package/dist/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
- /package/dist/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
- /package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DewH0PjV.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-
|
|
2
|
-
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
1
|
+
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-A9UIvc9j.js";
|
|
2
|
+
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-u6fgq_tm.js";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5
5
|
let _lazyMatch = () => {
|
|
@@ -431,7 +431,7 @@ const _path = {
|
|
|
431
431
|
};
|
|
432
432
|
//#endregion
|
|
433
433
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
434
|
-
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
434
|
+
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
|
435
435
|
const _platforms = {
|
|
436
436
|
posix: void 0,
|
|
437
437
|
win32: void 0
|
|
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
|
|
|
454
454
|
*
|
|
455
455
|
* @category Plugin APIs
|
|
456
456
|
*/
|
|
457
|
-
const VERSION = "1.0.
|
|
457
|
+
const VERSION = "1.0.2";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -748,9 +748,12 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
748
748
|
...post
|
|
749
749
|
];
|
|
750
750
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
751
|
+
const DEFAULT_CONFIG = {
|
|
752
|
+
lang: void 0,
|
|
753
|
+
message: void 0,
|
|
754
|
+
abortEarly: void 0,
|
|
755
|
+
abortPipeEarly: void 0
|
|
756
|
+
};
|
|
754
757
|
/**
|
|
755
758
|
* Returns the global configuration.
|
|
756
759
|
*
|
|
@@ -760,50 +763,14 @@ let store$4;
|
|
|
760
763
|
*/
|
|
761
764
|
/* @__NO_SIDE_EFFECTS__ */
|
|
762
765
|
function getGlobalConfig(config$1) {
|
|
766
|
+
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
763
767
|
return {
|
|
764
|
-
lang: config$1?.lang ??
|
|
768
|
+
lang: config$1?.lang ?? void 0,
|
|
765
769
|
message: config$1?.message,
|
|
766
|
-
abortEarly: config$1?.abortEarly ??
|
|
767
|
-
abortPipeEarly: config$1?.abortPipeEarly ??
|
|
770
|
+
abortEarly: config$1?.abortEarly ?? void 0,
|
|
771
|
+
abortPipeEarly: config$1?.abortPipeEarly ?? void 0
|
|
768
772
|
};
|
|
769
773
|
}
|
|
770
|
-
let store$3;
|
|
771
|
-
/**
|
|
772
|
-
* Returns a global error message.
|
|
773
|
-
*
|
|
774
|
-
* @param lang The language of the message.
|
|
775
|
-
*
|
|
776
|
-
* @returns The error message.
|
|
777
|
-
*/
|
|
778
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
779
|
-
function getGlobalMessage(lang) {
|
|
780
|
-
return store$3?.get(lang);
|
|
781
|
-
}
|
|
782
|
-
let store$2;
|
|
783
|
-
/**
|
|
784
|
-
* Returns a schema error message.
|
|
785
|
-
*
|
|
786
|
-
* @param lang The language of the message.
|
|
787
|
-
*
|
|
788
|
-
* @returns The error message.
|
|
789
|
-
*/
|
|
790
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
791
|
-
function getSchemaMessage(lang) {
|
|
792
|
-
return store$2?.get(lang);
|
|
793
|
-
}
|
|
794
|
-
let store$1;
|
|
795
|
-
/**
|
|
796
|
-
* Returns a specific error message.
|
|
797
|
-
*
|
|
798
|
-
* @param reference The identifier reference.
|
|
799
|
-
* @param lang The language of the message.
|
|
800
|
-
*
|
|
801
|
-
* @returns The error message.
|
|
802
|
-
*/
|
|
803
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
804
|
-
function getSpecificMessage(reference, lang) {
|
|
805
|
-
return store$1?.get(reference)?.get(lang);
|
|
806
|
-
}
|
|
807
774
|
/**
|
|
808
775
|
* Stringifies an unknown input to a literal or type string.
|
|
809
776
|
*
|
|
@@ -851,12 +818,13 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
851
818
|
abortPipeEarly: config$1.abortPipeEarly
|
|
852
819
|
};
|
|
853
820
|
const isSchema = context.kind === "schema";
|
|
854
|
-
const message$1 = other?.message ?? context.message ??
|
|
821
|
+
const message$1 = other?.message ?? context.message ?? (context.reference, issue.lang, void 0) ?? (isSchema ? (issue.lang, void 0) : null) ?? config$1.message ?? (issue.lang, void 0);
|
|
855
822
|
if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
|
|
856
823
|
if (isSchema) dataset.typed = false;
|
|
857
824
|
if (dataset.issues) dataset.issues.push(issue);
|
|
858
825
|
else dataset.issues = [issue];
|
|
859
826
|
}
|
|
827
|
+
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
860
828
|
/**
|
|
861
829
|
* Returns the Standard Schema properties.
|
|
862
830
|
*
|
|
@@ -866,13 +834,18 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
866
834
|
*/
|
|
867
835
|
/* @__NO_SIDE_EFFECTS__ */
|
|
868
836
|
function _getStandardProps(context) {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
837
|
+
let cached = _standardCache.get(context);
|
|
838
|
+
if (!cached) {
|
|
839
|
+
cached = {
|
|
840
|
+
version: 1,
|
|
841
|
+
vendor: "valibot",
|
|
842
|
+
validate(value$1) {
|
|
843
|
+
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
_standardCache.set(context, cached);
|
|
847
|
+
}
|
|
848
|
+
return cached;
|
|
876
849
|
}
|
|
877
850
|
/**
|
|
878
851
|
* Disallows inherited object properties and prevents object prototype
|
|
@@ -887,7 +860,7 @@ function _getStandardProps(context) {
|
|
|
887
860
|
*/
|
|
888
861
|
/* @__NO_SIDE_EFFECTS__ */
|
|
889
862
|
function _isValidObjectKey(object$1, key) {
|
|
890
|
-
return Object.
|
|
863
|
+
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
891
864
|
}
|
|
892
865
|
/**
|
|
893
866
|
* Joins multiple `expects` values with the given separator.
|
|
@@ -1011,6 +984,7 @@ function returnsAsync(schema) {
|
|
|
1011
984
|
}
|
|
1012
985
|
};
|
|
1013
986
|
}
|
|
987
|
+
const ABORT_EARLY_CONFIG = { abortEarly: true };
|
|
1014
988
|
/**
|
|
1015
989
|
* Returns the fallback value of the schema.
|
|
1016
990
|
*
|
|
@@ -1048,7 +1022,7 @@ function getDefault(schema, dataset, config$1) {
|
|
|
1048
1022
|
*/
|
|
1049
1023
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1050
1024
|
function is(schema, input) {
|
|
1051
|
-
return !schema["~run"]({ value: input },
|
|
1025
|
+
return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
|
|
1052
1026
|
}
|
|
1053
1027
|
/**
|
|
1054
1028
|
* Creates an any schema.
|
|
@@ -1640,7 +1614,7 @@ function undefined_(message$1) {
|
|
|
1640
1614
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1641
1615
|
function _subIssues(datasets) {
|
|
1642
1616
|
let issues;
|
|
1643
|
-
if (datasets) for (const dataset of datasets) if (issues)
|
|
1617
|
+
if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
|
|
1644
1618
|
else issues = dataset.issues;
|
|
1645
1619
|
return issues;
|
|
1646
1620
|
}
|
|
@@ -1965,6 +1939,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1965
1939
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
1966
1940
|
missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
|
|
1967
1941
|
missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
|
|
1942
|
+
invalidAnnotation: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position")),
|
|
1968
1943
|
mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
|
|
1969
1944
|
unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
|
|
1970
1945
|
unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
|
|
@@ -1980,7 +1955,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1980
1955
|
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1981
1956
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1982
1957
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1983
|
-
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1958
|
+
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1959
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1984
1960
|
});
|
|
1985
1961
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1986
1962
|
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -2098,7 +2074,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2098
2074
|
onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2099
2075
|
incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2100
2076
|
nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2101
|
-
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()
|
|
2077
|
+
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2078
|
+
mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2079
|
+
avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2080
|
+
})])),
|
|
2102
2081
|
lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2103
2082
|
})),
|
|
2104
2083
|
transform: /* @__PURE__ */ optional(TransformOptionsSchema),
|
|
@@ -2450,7 +2429,7 @@ function bindingAssetSource(source) {
|
|
|
2450
2429
|
return { inner: source };
|
|
2451
2430
|
}
|
|
2452
2431
|
//#endregion
|
|
2453
|
-
//#region \0@oxc-project+runtime@0.
|
|
2432
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/decorate.js
|
|
2454
2433
|
function __decorate(decorators, target, key, desc) {
|
|
2455
2434
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2456
2435
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2971,7 +2950,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
2971
2950
|
return map;
|
|
2972
2951
|
}
|
|
2973
2952
|
//#endregion
|
|
2974
|
-
//#region
|
|
2953
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
2975
2954
|
var And = class {
|
|
2976
2955
|
kind;
|
|
2977
2956
|
args;
|
|
@@ -3054,7 +3033,7 @@ function exclude(expr) {
|
|
|
3054
3033
|
return new Exclude(expr);
|
|
3055
3034
|
}
|
|
3056
3035
|
//#endregion
|
|
3057
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3036
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
3058
3037
|
function e(e, t, n) {
|
|
3059
3038
|
let r = (n) => e(n, ...t);
|
|
3060
3039
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -3063,7 +3042,7 @@ function e(e, t, n) {
|
|
|
3063
3042
|
});
|
|
3064
3043
|
}
|
|
3065
3044
|
//#endregion
|
|
3066
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3045
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
|
|
3067
3046
|
function t$1(t, n, r) {
|
|
3068
3047
|
let i = t.length - n.length;
|
|
3069
3048
|
if (i === 0) return t(...n);
|
|
@@ -3071,7 +3050,7 @@ function t$1(t, n, r) {
|
|
|
3071
3050
|
throw Error(`Wrong number of arguments`);
|
|
3072
3051
|
}
|
|
3073
3052
|
//#endregion
|
|
3074
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
3053
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
|
|
3075
3054
|
function t(...t) {
|
|
3076
3055
|
return t$1(n, t);
|
|
3077
3056
|
}
|
|
@@ -4395,7 +4374,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4395
4374
|
platform: inputOptions.platform,
|
|
4396
4375
|
shimMissingExports: inputOptions.shimMissingExports,
|
|
4397
4376
|
logLevel: bindingifyLogLevel(logLevel),
|
|
4398
|
-
onLog
|
|
4377
|
+
onLog,
|
|
4399
4378
|
treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
|
|
4400
4379
|
moduleTypes: inputOptions.moduleTypes,
|
|
4401
4380
|
define: normalizedTransform.define,
|
|
@@ -5233,21 +5212,20 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
5233
5212
|
const normalizedInputPlugins = normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX);
|
|
5234
5213
|
const normalizedOutputPlugins = normalizePlugins(hookOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX);
|
|
5235
5214
|
let plugins = [...normalizedInputPlugins, ...checkOutputPluginOption(normalizedOutputPlugins, onLog)];
|
|
5236
|
-
const parallelPluginInitResult = void 0;
|
|
5237
5215
|
if (inputOptions.experimental?.strictExecutionOrder !== void 0) console.warn("`experimental.strictExecutionOrder` has been stabilized and moved to `output.strictExecutionOrder`. Please update your configuration.");
|
|
5238
5216
|
try {
|
|
5239
5217
|
return {
|
|
5240
5218
|
bundlerOptions: {
|
|
5241
5219
|
inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, normalizedInputPlugins, normalizedOutputPlugins, onLog, logLevel, watchMode),
|
|
5242
5220
|
outputOptions: bindingifyOutputOptions(outputOptions),
|
|
5243
|
-
parallelPluginsRegistry:
|
|
5221
|
+
parallelPluginsRegistry: void 0
|
|
5244
5222
|
},
|
|
5245
5223
|
inputOptions,
|
|
5246
5224
|
onLog,
|
|
5247
|
-
stopWorkers:
|
|
5225
|
+
stopWorkers: void 0
|
|
5248
5226
|
};
|
|
5249
5227
|
} catch (e) {
|
|
5250
|
-
await
|
|
5228
|
+
await void 0;
|
|
5251
5229
|
throw e;
|
|
5252
5230
|
}
|
|
5253
5231
|
}
|
package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-Dh93Higz.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
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-aMKUxRpj.mjs";
|
|
2
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CHVaSqeF.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-BcLvc0mh.mjs";
|
|
4
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-B5cMIevi.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
9
|
//#region package.json
|
|
10
|
-
var version = "1.0.
|
|
10
|
+
var version = "1.0.2";
|
|
11
11
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/constants/version.ts
|
|
@@ -218,7 +218,7 @@ function bindingAssetSource(source) {
|
|
|
218
218
|
return { inner: source };
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
|
-
//#region \0@oxc-project+runtime@0.
|
|
221
|
+
//#region \0@oxc-project+runtime@0.132.0/helpers/decorate.js
|
|
222
222
|
function __decorate(decorators, target, key, desc) {
|
|
223
223
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
224
224
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -672,7 +672,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
672
672
|
return map;
|
|
673
673
|
}
|
|
674
674
|
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
675
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
676
676
|
function e(e, t, n) {
|
|
677
677
|
let r = (n) => e(n, ...t);
|
|
678
678
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -681,7 +681,7 @@ function e(e, t, n) {
|
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
684
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
|
|
685
685
|
function t$1(t, n, r) {
|
|
686
686
|
let i = t.length - n.length;
|
|
687
687
|
if (i === 0) return t(...n);
|
|
@@ -689,7 +689,7 @@ function t$1(t, n, r) {
|
|
|
689
689
|
throw Error(`Wrong number of arguments`);
|
|
690
690
|
}
|
|
691
691
|
//#endregion
|
|
692
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
692
|
+
//#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
|
|
693
693
|
function t(...t) {
|
|
694
694
|
return t$1(n, t);
|
|
695
695
|
}
|
|
@@ -2008,7 +2008,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
2008
2008
|
platform: inputOptions.platform,
|
|
2009
2009
|
shimMissingExports: inputOptions.shimMissingExports,
|
|
2010
2010
|
logLevel: bindingifyLogLevel(logLevel),
|
|
2011
|
-
onLog
|
|
2011
|
+
onLog,
|
|
2012
2012
|
treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
|
|
2013
2013
|
moduleTypes: inputOptions.moduleTypes,
|
|
2014
2014
|
define: normalizedTransform.define,
|
|
@@ -18,7 +18,7 @@ function unsupported(info) {
|
|
|
18
18
|
}
|
|
19
19
|
function noop(..._args) {}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region
|
|
21
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/utils.js
|
|
22
22
|
const postfixRE = /[?#].*$/;
|
|
23
23
|
function cleanUrl(url) {
|
|
24
24
|
return url.replace(postfixRE, "");
|
|
@@ -31,7 +31,7 @@ function extractQueryWithoutFragment(url) {
|
|
|
31
31
|
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region
|
|
34
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
35
35
|
var And = class {
|
|
36
36
|
kind;
|
|
37
37
|
args;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-
|
|
2
|
-
import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-Ba2kzvIy.mjs";
|
|
2
|
+
import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-CA_QYuaU.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CHVaSqeF.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./binding-
|
|
2
|
-
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-
|
|
3
|
-
import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-
|
|
1
|
+
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./binding-Ba2kzvIy.mjs";
|
|
2
|
+
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
|
|
3
|
+
import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-CA_QYuaU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/misc.d.ts
|
|
6
6
|
/** @inline */
|
|
@@ -850,8 +850,6 @@ interface OutputOptions {
|
|
|
850
850
|
*
|
|
851
851
|
* When both `legalComments` and `comments.legal` are set, `comments.legal` takes priority.
|
|
852
852
|
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
853
|
* @default true
|
|
856
854
|
*/
|
|
857
855
|
comments?: boolean | CommentsOptions;
|
|
@@ -895,9 +893,18 @@ interface OutputOptions {
|
|
|
895
893
|
*/
|
|
896
894
|
preserveModulesRoot?: string;
|
|
897
895
|
/**
|
|
898
|
-
* Whether to
|
|
896
|
+
* Whether to convert top-level `let` and `const` declarations into `var` declarations.
|
|
897
|
+
*
|
|
898
|
+
* Enabling this option can improve runtime performance of the generated code in
|
|
899
|
+
* certain environments by avoiding Temporal Dead Zone (TDZ) checks. Only declarations
|
|
900
|
+
* in the module's top-level scope are rewritten — declarations inside nested scopes
|
|
901
|
+
* (functions, blocks, etc.) are left as-is.
|
|
899
902
|
*
|
|
900
|
-
*
|
|
903
|
+
* Note:
|
|
904
|
+
* - Top-level `class X {}` declarations are always emitted as `var X = class {}` so
|
|
905
|
+
* rolldown can hoist them alongside other top-level bindings; this transform is
|
|
906
|
+
* independent of `topLevelVar`.
|
|
907
|
+
* - Top-level `function` declarations are never rewritten.
|
|
901
908
|
*
|
|
902
909
|
* @default false
|
|
903
910
|
*
|
|
@@ -1491,6 +1498,15 @@ interface ChecksOptions {
|
|
|
1491
1498
|
* */
|
|
1492
1499
|
missingNameOptionForIifeExport?: boolean;
|
|
1493
1500
|
/**
|
|
1501
|
+
* Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position.
|
|
1502
|
+
*
|
|
1503
|
+
* Annotations placed where they cannot annotate a call expression (e.g. before a non-call expression,
|
|
1504
|
+
* before a statement declaration, or between an identifier and `=` in a variable declarator) are
|
|
1505
|
+
* ignored by the parser. Matches Rollup's `INVALID_ANNOTATION` log code.
|
|
1506
|
+
* @default true
|
|
1507
|
+
* */
|
|
1508
|
+
invalidAnnotation?: boolean;
|
|
1509
|
+
/**
|
|
1494
1510
|
* Whether to emit warnings when the way to export values is ambiguous.
|
|
1495
1511
|
*
|
|
1496
1512
|
* See [`output.exports`](https://rolldown.rs/reference/OutputOptions.exports).
|
|
@@ -1598,6 +1614,15 @@ interface ChecksOptions {
|
|
|
1598
1614
|
* @default true
|
|
1599
1615
|
* */
|
|
1600
1616
|
ineffectiveDynamicImport?: boolean;
|
|
1617
|
+
/**
|
|
1618
|
+
* Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000).
|
|
1619
|
+
*
|
|
1620
|
+
* Such modules can significantly slow down module resolution. Consider using
|
|
1621
|
+
* [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
|
|
1622
|
+
* to rewrite barrel imports at the source level so the barrel file is never loaded.
|
|
1623
|
+
* @default true
|
|
1624
|
+
* */
|
|
1625
|
+
largeBarrelModules?: boolean;
|
|
1601
1626
|
}
|
|
1602
1627
|
//#endregion
|
|
1603
1628
|
//#region src/options/transform-options.d.ts
|
|
@@ -2546,7 +2571,7 @@ type DefinedHookNames = { readonly [K in (typeof ENUMERATED_PLUGIN_HOOK_NAMES)[n
|
|
|
2546
2571
|
*/
|
|
2547
2572
|
declare const DEFINED_HOOK_NAMES: DefinedHookNames;
|
|
2548
2573
|
//#endregion
|
|
2549
|
-
//#region
|
|
2574
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
|
|
2550
2575
|
type StringOrRegExp = string | RegExp;
|
|
2551
2576
|
type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
|
|
2552
2577
|
type FilterExpressionKind = FilterExpression['kind'];
|
|
@@ -3151,6 +3176,28 @@ type InputOption = string | string[] | Record<string, string>;
|
|
|
3151
3176
|
type ExternalOptionFunction = (id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>;
|
|
3152
3177
|
/** @inline */
|
|
3153
3178
|
type ExternalOption = StringOrRegExp$1 | StringOrRegExp$1[] | ExternalOptionFunction;
|
|
3179
|
+
interface ChunkOptimizationOptions {
|
|
3180
|
+
/**
|
|
3181
|
+
* Merge common chunks into existing entry chunks when it is safe.
|
|
3182
|
+
*
|
|
3183
|
+
* This can reduce the number of emitted chunks by moving shared/common modules
|
|
3184
|
+
* into an entry chunk that already depends on them. Rolldown only applies the
|
|
3185
|
+
* merge when it does not create a circular chunk dependency or change strict
|
|
3186
|
+
* entry export signatures. This pass also covers safe empty-facade cleanup.
|
|
3187
|
+
*
|
|
3188
|
+
* @default true
|
|
3189
|
+
*/
|
|
3190
|
+
mergeCommonChunks?: boolean;
|
|
3191
|
+
/**
|
|
3192
|
+
* Avoid emitting redundant chunk loads for dynamic entries.
|
|
3193
|
+
*
|
|
3194
|
+
* This pass can reduce dynamic-entry dependent chunks when the shared modules
|
|
3195
|
+
* are guaranteed to be loaded by every importer of that dynamic entry.
|
|
3196
|
+
*
|
|
3197
|
+
* @default true
|
|
3198
|
+
*/
|
|
3199
|
+
avoidRedundantChunkLoads?: boolean;
|
|
3200
|
+
}
|
|
3154
3201
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset" | "copy">;
|
|
3155
3202
|
interface WatcherFileWatcherOptions {
|
|
3156
3203
|
/**
|
|
@@ -3754,18 +3801,18 @@ interface InputOptions {
|
|
|
3754
3801
|
*/
|
|
3755
3802
|
nativeMagicString?: boolean;
|
|
3756
3803
|
/**
|
|
3757
|
-
* Control
|
|
3758
|
-
* This optimization can reduce the number of generated chunks.
|
|
3804
|
+
* Control chunk optimizations.
|
|
3759
3805
|
*
|
|
3760
|
-
*
|
|
3761
|
-
*
|
|
3806
|
+
* `true` enables both common-chunk merging and redundant dynamic chunk-load avoidance.
|
|
3807
|
+
* `false` disables all chunk optimizations. Use the object form to control
|
|
3808
|
+
* `mergeCommonChunks` and `avoidRedundantChunkLoads` separately.
|
|
3762
3809
|
*
|
|
3763
|
-
*
|
|
3764
|
-
* as
|
|
3810
|
+
* These optimizations are automatically disabled when any module uses top-level await (TLA) or contains TLA dependencies,
|
|
3811
|
+
* as they could affect execution order guarantees.
|
|
3765
3812
|
*
|
|
3766
3813
|
* @default true
|
|
3767
3814
|
*/
|
|
3768
|
-
chunkOptimization?: boolean;
|
|
3815
|
+
chunkOptimization?: boolean | ChunkOptimizationOptions;
|
|
3769
3816
|
/**
|
|
3770
3817
|
* Control whether to enable lazy barrel optimization.
|
|
3771
3818
|
*
|
|
@@ -3820,6 +3867,11 @@ interface InputOptions {
|
|
|
3820
3867
|
makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
|
|
3821
3868
|
/**
|
|
3822
3869
|
* Devtools integration options.
|
|
3870
|
+
*
|
|
3871
|
+
* When enabled, Rolldown writes JSON-lines devtools output under
|
|
3872
|
+
* `node_modules/.rolldown/{session_id}/`. Consumers can parse the output with
|
|
3873
|
+
* `@rolldown/debug` after `await bundle.close()` resolves.
|
|
3874
|
+
*
|
|
3823
3875
|
* @experimental
|
|
3824
3876
|
*/
|
|
3825
3877
|
devtools?: {
|
|
@@ -3897,4 +3949,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3897
3949
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3898
3950
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3899
3951
|
//#endregion
|
|
3900
|
-
export {
|
|
3952
|
+
export { VERSION as $, GlobalsFunction as $t, RolldownPluginOption as A, WarningHandlerWithDefault as At, exclude as B, build as Bt, ParallelPluginHooks as C, RolldownFsModule as Ct, ResolveIdResult as D, TransformOptions as Dt, ResolveIdExtraOptions as E, NormalizedInputOptions as Et, FilterExpressionKind as F, RolldownWatcherWatcherEventMap as Ft, interpreter as G, ChunkFileNamesFunction as Gt, id as H, AdvancedChunksGroup as Ht, QueryFilterObject as I, WatchOptions as It, not as J, CodeSplittingNameFunction as Jt, interpreterImpl as K, ChunkingContext as Kt, TopLevelFilterExpression as L, rolldown as Lt, TransformResult as M, watch as Mt, withFilter as N, RolldownWatcher as Nt, ResolvedId as O, ChecksOptions as Ot, FilterExpression as P, RolldownWatcherEvent as Pt, RUNTIME_MODULE_ID as Q, GeneratedCodePreset as Qt, and as R, RolldownBuild as Rt, ObjectHook as S, RolldownFileStats as St, Plugin as T, NormalizedOutputOptions as Tt, importerId as U, AdvancedChunksOptions as Ut, exprInterpreter as V, AddonFunction as Vt, include as W, BuiltinModuleTag as Wt, queries as X, CommentsOptions as Xt, or as Y, CodeSplittingOptions as Yt, query as Z, GeneratedCodeOptions as Zt, HookFilterExtension as _, GeneralHookFilter as _t, ChunkOptimizationOptions as a, OutputChunk as an, TransformPluginContext as at, ModuleOptions as b, BufferEncoding as bt, InputOption as c, RolldownOutput as cn, EmittedFile as ct, OptimizationOptions as d, ModuleInfo as dn, PluginContext as dt, MinifyOptions as en, BundleError as et, WatcherFileWatcherOptions as f, SourcemapIgnoreListOption as fn, PluginContextResolveOptions as ft, FunctionPluginHooks as g, PluginContextMeta as gt, CustomPluginOptions as h, MinimalPluginContext as ht, RolldownOptions as i, OutputAsset as in, TreeshakingOptions as it, SourceDescription as j, RolldownMagicString as jt, RolldownPlugin as k, LoggingFunction as kt, InputOptions as l, SourceMap as ln, EmittedPrebuiltChunk as lt, AsyncPluginHooks as m, defineParallelPlugin as mt, RolldownOptionsFunction as n, OutputOptions as nn, SourceMapInput as nt, ExternalOption as o, RenderedChunk as on, EmittedAsset as ot, WatcherOptions as p, DefineParallelPluginResult as pt, moduleType as q, CodeSplittingGroup as qt, defineConfig as r, PreRenderedAsset as rn, OutputBundle as rt, ExternalOptionFunction as s, RenderedModule as sn, EmittedChunk as st, ConfigExport as t, ModuleFormat as tn, ExistingRawSourceMap as tt, ModuleTypes as u, freeExternalMemory as un, GetModuleInfo as ut, ImportKind as v, HookFilter as vt, PartialResolvedId as w, InternalModuleFormat as wt, ModuleType as x, RolldownDirectoryEntry as xt, LoadResult as y, ModuleTypeFilter as yt, code as z, BuildOptions as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as logPluginError, n as error } from "./logs-
|
|
1
|
+
import { c as logPluginError, n as error } from "./logs-aMKUxRpj.mjs";
|
|
2
2
|
import { BindingCallableBuiltinPlugin } from "../rolldown-binding.wasi.cjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var BuiltinPlugin = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
5
5
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-B5cMIevi.mjs";
|
|
2
2
|
import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "../rolldown-binding.wasi.cjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BodFrzFa.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|