@rolldown/browser 1.0.0-beta.29-commit.fe1bea3 → 1.0.0-beta.31
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.cjs +23 -8
- package/dist/cli.mjs +23 -8
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +2 -2
- package/dist/experimental-index.cjs +2 -3
- package/dist/experimental-index.d.cts +3 -3
- package/dist/experimental-index.d.mts +3 -3
- package/dist/experimental-index.mjs +3 -3
- package/dist/experimental-runtime-types.d.ts +2 -0
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- 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/shared/{binding-BO7hG1pA.d.mts → binding-B2f_h9DF.d.mts} +42 -44
- package/dist/shared/{binding-D1lW862e.d.cts → binding-CCkTRaSB.d.cts} +42 -44
- package/dist/shared/{define-config-CKxZwWu_.d.mts → define-config-BzVT47Bj.d.cts} +73 -11
- package/dist/shared/{define-config-O6TCZLYU.d.cts → define-config-xzVj_WrD.d.mts} +73 -11
- package/dist/shared/{load-config-CPJ15pW3.cjs → load-config-9KWiC1Y_.cjs} +2 -2
- package/dist/shared/{load-config-C2Df0pqb.mjs → load-config-DCz6MK3j.mjs} +2 -2
- package/dist/shared/{parse-ast-index-CLjgl4c8.cjs → parse-ast-index-DZ5uPSgP.cjs} +2 -2
- package/dist/shared/{parse-ast-index-rwZvDBjW.mjs → parse-ast-index-r9XO-GhB.mjs} +2 -2
- package/dist/shared/{src-BWVOVy_u.mjs → src-BSeUgDdv.mjs} +115 -150
- package/dist/shared/{src-BLxfrK6S.cjs → src-gD0LmYxq.cjs} +114 -155
- package/dist/{src-CVDDqNxL.js → src-C8_hb_FH.js} +82 -64
- package/package.json +2 -2
|
@@ -1077,15 +1077,11 @@ declare class BindingBundlerImpl {
|
|
|
1077
1077
|
close(): Promise<void>;
|
|
1078
1078
|
get closed(): boolean;
|
|
1079
1079
|
getWatchFiles(): Promise<Array<string>>;
|
|
1080
|
-
generateHmrPatch(changedFiles: Array<string>): Promise<
|
|
1081
|
-
hmrInvalidate(
|
|
1082
|
-
}
|
|
1083
|
-
declare class BindingError {
|
|
1084
|
-
kind: string;
|
|
1085
|
-
message: string;
|
|
1080
|
+
generateHmrPatch(changedFiles: Array<string>): Promise<BindingGenerateHmrPatchReturn>;
|
|
1081
|
+
hmrInvalidate(caller: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
|
|
1086
1082
|
}
|
|
1087
1083
|
declare class BindingHmrOutput {
|
|
1088
|
-
get patch():
|
|
1084
|
+
get patch(): BindingHmrUpdate | null;
|
|
1089
1085
|
get errors(): Array<Error | BindingError>;
|
|
1090
1086
|
}
|
|
1091
1087
|
declare class BindingOutputAsset {
|
|
@@ -1145,10 +1141,16 @@ declare class BindingWatcherEvent {
|
|
|
1145
1141
|
bundleErrorData(): BindingBundleErrorEventData;
|
|
1146
1142
|
}
|
|
1147
1143
|
interface BindingAssetPluginConfig {
|
|
1148
|
-
|
|
1144
|
+
isLib?: boolean;
|
|
1145
|
+
isSsr?: boolean;
|
|
1146
|
+
isWorker?: boolean;
|
|
1149
1147
|
urlBase?: string;
|
|
1150
1148
|
publicDir?: string;
|
|
1149
|
+
decodedBase?: string;
|
|
1150
|
+
isSkipAssets?: boolean;
|
|
1151
1151
|
assetsInclude?: Array<BindingStringOrRegex>;
|
|
1152
|
+
assetInlineLimit?: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1153
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => MaybePromise<VoidNullable<string | BindingRenderBuiltUrlRet>>;
|
|
1152
1154
|
}
|
|
1153
1155
|
interface BindingAssetSource {
|
|
1154
1156
|
inner: string | Uint8Array;
|
|
@@ -1160,27 +1162,40 @@ interface BindingBuildImportAnalysisPluginConfig {
|
|
|
1160
1162
|
renderBuiltUrl: boolean;
|
|
1161
1163
|
isRelativeBase: boolean;
|
|
1162
1164
|
}
|
|
1163
|
-
type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-
|
|
1165
|
+
type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-preload-polyfill' | 'builtin:oxc-runtime' | 'builtin:reporter' | 'builtin:replace' | 'builtin:transform' | 'builtin:vite-resolve' | 'builtin:wasm-fallback' | 'builtin:wasm-helper' | 'builtin:web-worker-post';
|
|
1164
1166
|
interface BindingDynamicImportVarsPluginConfig {
|
|
1165
1167
|
include?: Array<BindingStringOrRegex>;
|
|
1166
1168
|
exclude?: Array<BindingStringOrRegex>;
|
|
1167
1169
|
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1168
1170
|
}
|
|
1171
|
+
interface BindingError {
|
|
1172
|
+
kind: string;
|
|
1173
|
+
message: string;
|
|
1174
|
+
}
|
|
1175
|
+
type BindingGenerateHmrPatchReturn = {
|
|
1176
|
+
type: 'Ok';
|
|
1177
|
+
field0: Array<BindingHmrUpdate>;
|
|
1178
|
+
} | {
|
|
1179
|
+
type: 'Error';
|
|
1180
|
+
field0: Array<Error | BindingError>;
|
|
1181
|
+
};
|
|
1169
1182
|
interface BindingHmrBoundaryOutput {
|
|
1170
1183
|
boundary: string;
|
|
1171
1184
|
acceptedVia: string;
|
|
1172
1185
|
}
|
|
1173
|
-
|
|
1186
|
+
type BindingHmrUpdate = {
|
|
1187
|
+
type: 'Patch';
|
|
1174
1188
|
code: string;
|
|
1175
1189
|
filename: string;
|
|
1176
1190
|
sourcemap?: string;
|
|
1177
1191
|
sourcemapFilename?: string;
|
|
1178
1192
|
hmrBoundaries: Array<BindingHmrBoundaryOutput>;
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1193
|
+
} | {
|
|
1194
|
+
type: 'FullReload';
|
|
1195
|
+
reason?: string;
|
|
1196
|
+
} | {
|
|
1197
|
+
type: 'Noop';
|
|
1198
|
+
};
|
|
1184
1199
|
interface BindingHookResolveIdExtraArgs {
|
|
1185
1200
|
custom?: number;
|
|
1186
1201
|
isEntry: boolean;
|
|
@@ -1212,26 +1227,11 @@ interface BindingManifestPluginConfig {
|
|
|
1212
1227
|
root: string;
|
|
1213
1228
|
outPath: string;
|
|
1214
1229
|
}
|
|
1215
|
-
interface BindingMfManifest {
|
|
1216
|
-
filePath?: string;
|
|
1217
|
-
disableAssetsAnalyze?: boolean;
|
|
1218
|
-
fileName?: string;
|
|
1219
|
-
}
|
|
1220
1230
|
interface BindingMinifyOptions {
|
|
1221
1231
|
mangle?: boolean;
|
|
1222
1232
|
compress?: boolean;
|
|
1223
1233
|
removeWhitespace?: boolean;
|
|
1224
1234
|
}
|
|
1225
|
-
interface BindingModuleFederationPluginOption {
|
|
1226
|
-
name: string;
|
|
1227
|
-
filename?: string;
|
|
1228
|
-
exposes?: Record<string, string>;
|
|
1229
|
-
remotes?: Array<BindingRemote>;
|
|
1230
|
-
shared?: Record<string, BindingShared>;
|
|
1231
|
-
runtimePlugins?: Array<string>;
|
|
1232
|
-
manifest?: BindingMfManifest;
|
|
1233
|
-
getPublicPath?: string;
|
|
1234
|
-
}
|
|
1235
1235
|
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1236
1236
|
isServer?: boolean;
|
|
1237
1237
|
}
|
|
@@ -1239,12 +1239,15 @@ interface BindingModules {
|
|
|
1239
1239
|
values: Array<BindingRenderedModule>;
|
|
1240
1240
|
keys: Array<string>;
|
|
1241
1241
|
}
|
|
1242
|
-
interface
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1242
|
+
interface BindingRenderBuiltUrlConfig {
|
|
1243
|
+
ssr: boolean;
|
|
1244
|
+
type: 'asset' | 'public';
|
|
1245
|
+
hostId: string;
|
|
1246
|
+
hostType: 'js' | 'css' | 'html';
|
|
1247
|
+
}
|
|
1248
|
+
interface BindingRenderBuiltUrlRet {
|
|
1249
|
+
relative?: boolean;
|
|
1250
|
+
runtime?: string;
|
|
1248
1251
|
}
|
|
1249
1252
|
interface BindingReplacePluginConfig {
|
|
1250
1253
|
values: Record<string, string>;
|
|
@@ -1261,13 +1264,6 @@ interface BindingReporterPluginConfig {
|
|
|
1261
1264
|
shouldLogInfo: boolean;
|
|
1262
1265
|
reportCompressedSize: boolean;
|
|
1263
1266
|
}
|
|
1264
|
-
interface BindingShared {
|
|
1265
|
-
version?: string;
|
|
1266
|
-
shareScope?: string;
|
|
1267
|
-
singleton?: boolean;
|
|
1268
|
-
requiredVersion?: string;
|
|
1269
|
-
strictVersion?: boolean;
|
|
1270
|
-
}
|
|
1271
1267
|
interface BindingTransformHookExtraArgs {
|
|
1272
1268
|
moduleType: string;
|
|
1273
1269
|
}
|
|
@@ -1292,6 +1288,8 @@ interface BindingViteResolvePluginConfig {
|
|
|
1292
1288
|
finalizeBareSpecifier?: (resolvedId: string, rawId: string, importer: string | null | undefined) => VoidNullable<string>;
|
|
1293
1289
|
finalizeOtherSpecifiers?: (resolvedId: string, rawId: string) => VoidNullable<string>;
|
|
1294
1290
|
resolveSubpathImports: (id: string, importer: string, isRequire: boolean, scan: boolean) => VoidNullable<string>;
|
|
1291
|
+
onWarn?: (message: string) => void;
|
|
1292
|
+
onDebug?: (message: string) => void;
|
|
1295
1293
|
}
|
|
1296
1294
|
interface BindingViteResolvePluginResolveOptions {
|
|
1297
1295
|
isBuild: boolean;
|
|
@@ -1322,4 +1320,4 @@ interface PreRenderedChunk {
|
|
|
1322
1320
|
exports: Array<string>;
|
|
1323
1321
|
}
|
|
1324
1322
|
//#endregion
|
|
1325
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig,
|
|
1323
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CCkTRaSB.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -141,10 +141,12 @@ type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd
|
|
|
141
141
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
142
142
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
143
143
|
interface PreRenderedAsset {
|
|
144
|
+
type: "asset";
|
|
145
|
+
name?: string;
|
|
144
146
|
names: string[];
|
|
147
|
+
originalFileName?: string;
|
|
145
148
|
originalFileNames: string[];
|
|
146
149
|
source: string | Uint8Array;
|
|
147
|
-
type: "asset";
|
|
148
150
|
}
|
|
149
151
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
150
152
|
type GlobalsFunction = (name: string) => string;
|
|
@@ -168,6 +170,7 @@ interface OutputOptions {
|
|
|
168
170
|
*/
|
|
169
171
|
format?: ModuleFormat;
|
|
170
172
|
sourcemap?: boolean | "inline" | "hidden";
|
|
173
|
+
sourcemapBaseUrl?: string;
|
|
171
174
|
sourcemapDebugIds?: boolean;
|
|
172
175
|
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
|
|
173
176
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
@@ -461,8 +464,8 @@ declare class RolldownBuild {
|
|
|
461
464
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
462
465
|
close(): Promise<void>;
|
|
463
466
|
[Symbol.asyncDispose](): Promise<void>;
|
|
464
|
-
generateHmrPatch(changedFiles: string[]): Promise<
|
|
465
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<
|
|
467
|
+
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrUpdate[]>;
|
|
468
|
+
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
|
|
466
469
|
get watchFiles(): Promise<string[]>;
|
|
467
470
|
}
|
|
468
471
|
//#endregion
|
|
@@ -541,6 +544,7 @@ interface NormalizedOutputOptions {
|
|
|
541
544
|
format: InternalModuleFormat;
|
|
542
545
|
exports: NonNullable<OutputOptions["exports"]>;
|
|
543
546
|
sourcemap: boolean | "inline" | "hidden";
|
|
547
|
+
sourcemapBaseUrl: string | undefined;
|
|
544
548
|
cssEntryFileNames: string | ChunkFileNamesFunction;
|
|
545
549
|
cssChunkFileNames: string | ChunkFileNamesFunction;
|
|
546
550
|
inlineDynamicImports: boolean;
|
|
@@ -567,6 +571,67 @@ interface NormalizedOutputOptions {
|
|
|
567
571
|
minifyInternalExports?: boolean;
|
|
568
572
|
}
|
|
569
573
|
//#endregion
|
|
574
|
+
//#region src/plugin/fs.d.ts
|
|
575
|
+
interface RolldownFsModule {
|
|
576
|
+
appendFile(path: string, data: string | Uint8Array, options?: {
|
|
577
|
+
encoding?: BufferEncoding | null;
|
|
578
|
+
mode?: string | number;
|
|
579
|
+
flag?: string | number;
|
|
580
|
+
}): Promise<void>;
|
|
581
|
+
copyFile(source: string, destination: string, mode?: string | number): Promise<void>;
|
|
582
|
+
mkdir(path: string, options?: {
|
|
583
|
+
recursive?: boolean;
|
|
584
|
+
mode?: string | number;
|
|
585
|
+
}): Promise<void>;
|
|
586
|
+
mkdtemp(prefix: string): Promise<string>;
|
|
587
|
+
readdir(path: string, options?: {
|
|
588
|
+
withFileTypes?: false;
|
|
589
|
+
}): Promise<string[]>;
|
|
590
|
+
readdir(path: string, options?: {
|
|
591
|
+
withFileTypes: true;
|
|
592
|
+
}): Promise<RolldownDirectoryEntry[]>;
|
|
593
|
+
readFile(path: string, options?: {
|
|
594
|
+
encoding?: null;
|
|
595
|
+
flag?: string | number;
|
|
596
|
+
signal?: AbortSignal;
|
|
597
|
+
}): Promise<Uint8Array>;
|
|
598
|
+
readFile(path: string, options?: {
|
|
599
|
+
encoding: BufferEncoding;
|
|
600
|
+
flag?: string | number;
|
|
601
|
+
signal?: AbortSignal;
|
|
602
|
+
}): Promise<string>;
|
|
603
|
+
realpath(path: string): Promise<string>;
|
|
604
|
+
rename(oldPath: string, newPath: string): Promise<void>;
|
|
605
|
+
rmdir(path: string, options?: {
|
|
606
|
+
recursive?: boolean;
|
|
607
|
+
}): Promise<void>;
|
|
608
|
+
stat(path: string): Promise<RolldownFileStats>;
|
|
609
|
+
lstat(path: string): Promise<RolldownFileStats>;
|
|
610
|
+
unlink(path: string): Promise<void>;
|
|
611
|
+
writeFile(path: string, data: string | Uint8Array, options?: {
|
|
612
|
+
encoding?: BufferEncoding | null;
|
|
613
|
+
mode?: string | number;
|
|
614
|
+
flag?: string | number;
|
|
615
|
+
}): Promise<void>;
|
|
616
|
+
}
|
|
617
|
+
type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
|
|
618
|
+
interface RolldownDirectoryEntry {
|
|
619
|
+
isFile(): boolean;
|
|
620
|
+
isDirectory(): boolean;
|
|
621
|
+
isSymbolicLink(): boolean;
|
|
622
|
+
name: string;
|
|
623
|
+
}
|
|
624
|
+
interface RolldownFileStats {
|
|
625
|
+
isFile(): boolean;
|
|
626
|
+
isDirectory(): boolean;
|
|
627
|
+
isSymbolicLink(): boolean;
|
|
628
|
+
size: number;
|
|
629
|
+
mtime: Date;
|
|
630
|
+
ctime: Date;
|
|
631
|
+
atime: Date;
|
|
632
|
+
birthtime: Date;
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
570
635
|
//#region src/plugin/hook-filter.d.ts
|
|
571
636
|
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
572
637
|
include?: MaybeArray<Value>;
|
|
@@ -646,7 +711,7 @@ interface EmittedAsset {
|
|
|
646
711
|
type: "asset";
|
|
647
712
|
name?: string;
|
|
648
713
|
fileName?: string;
|
|
649
|
-
originalFileName?: string
|
|
714
|
+
originalFileName?: string;
|
|
650
715
|
source: AssetSource;
|
|
651
716
|
}
|
|
652
717
|
interface EmittedChunk {
|
|
@@ -665,6 +730,7 @@ interface PluginContextResolveOptions {
|
|
|
665
730
|
}
|
|
666
731
|
type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
|
|
667
732
|
interface PluginContext extends MinimalPluginContext {
|
|
733
|
+
fs: RolldownFsModule;
|
|
668
734
|
emitFile(file: EmittedFile): string;
|
|
669
735
|
getFileName(referenceId: string): string;
|
|
670
736
|
getModuleIds(): IterableIterator<string>;
|
|
@@ -747,11 +813,6 @@ declare function loadFallbackPlugin(): BuiltinPlugin;
|
|
|
747
813
|
declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
|
|
748
814
|
declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
749
815
|
declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
|
|
750
|
-
type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, "remotes"> & {
|
|
751
|
-
remotes?: Record<string, string | BindingRemote>;
|
|
752
|
-
manifest?: boolean | BindingMfManifest;
|
|
753
|
-
};
|
|
754
|
-
declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
|
755
816
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
756
817
|
declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
|
|
757
818
|
declare function webWorkerPostPlugin(): BuiltinPlugin;
|
|
@@ -990,6 +1051,7 @@ interface WatcherOptions {
|
|
|
990
1051
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
991
1052
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
992
1053
|
onInvalidate?: (id: string) => void;
|
|
1054
|
+
clearScreen?: boolean;
|
|
993
1055
|
}
|
|
994
1056
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
995
1057
|
type HmrOptions = boolean | {
|
|
@@ -1270,4 +1332,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
|
|
|
1270
1332
|
declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
1271
1333
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1272
1334
|
//#endregion
|
|
1273
|
-
export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin,
|
|
1335
|
+
export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-B2f_h9DF.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -141,10 +141,12 @@ type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd
|
|
|
141
141
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
142
142
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
143
143
|
interface PreRenderedAsset {
|
|
144
|
+
type: "asset";
|
|
145
|
+
name?: string;
|
|
144
146
|
names: string[];
|
|
147
|
+
originalFileName?: string;
|
|
145
148
|
originalFileNames: string[];
|
|
146
149
|
source: string | Uint8Array;
|
|
147
|
-
type: "asset";
|
|
148
150
|
}
|
|
149
151
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
150
152
|
type GlobalsFunction = (name: string) => string;
|
|
@@ -168,6 +170,7 @@ interface OutputOptions {
|
|
|
168
170
|
*/
|
|
169
171
|
format?: ModuleFormat;
|
|
170
172
|
sourcemap?: boolean | "inline" | "hidden";
|
|
173
|
+
sourcemapBaseUrl?: string;
|
|
171
174
|
sourcemapDebugIds?: boolean;
|
|
172
175
|
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
|
|
173
176
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
@@ -461,8 +464,8 @@ declare class RolldownBuild {
|
|
|
461
464
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
462
465
|
close(): Promise<void>;
|
|
463
466
|
[Symbol.asyncDispose](): Promise<void>;
|
|
464
|
-
generateHmrPatch(changedFiles: string[]): Promise<
|
|
465
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<
|
|
467
|
+
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrUpdate[]>;
|
|
468
|
+
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
|
|
466
469
|
get watchFiles(): Promise<string[]>;
|
|
467
470
|
}
|
|
468
471
|
//#endregion
|
|
@@ -541,6 +544,7 @@ interface NormalizedOutputOptions {
|
|
|
541
544
|
format: InternalModuleFormat;
|
|
542
545
|
exports: NonNullable<OutputOptions["exports"]>;
|
|
543
546
|
sourcemap: boolean | "inline" | "hidden";
|
|
547
|
+
sourcemapBaseUrl: string | undefined;
|
|
544
548
|
cssEntryFileNames: string | ChunkFileNamesFunction;
|
|
545
549
|
cssChunkFileNames: string | ChunkFileNamesFunction;
|
|
546
550
|
inlineDynamicImports: boolean;
|
|
@@ -567,6 +571,67 @@ interface NormalizedOutputOptions {
|
|
|
567
571
|
minifyInternalExports?: boolean;
|
|
568
572
|
}
|
|
569
573
|
//#endregion
|
|
574
|
+
//#region src/plugin/fs.d.ts
|
|
575
|
+
interface RolldownFsModule {
|
|
576
|
+
appendFile(path: string, data: string | Uint8Array, options?: {
|
|
577
|
+
encoding?: BufferEncoding | null;
|
|
578
|
+
mode?: string | number;
|
|
579
|
+
flag?: string | number;
|
|
580
|
+
}): Promise<void>;
|
|
581
|
+
copyFile(source: string, destination: string, mode?: string | number): Promise<void>;
|
|
582
|
+
mkdir(path: string, options?: {
|
|
583
|
+
recursive?: boolean;
|
|
584
|
+
mode?: string | number;
|
|
585
|
+
}): Promise<void>;
|
|
586
|
+
mkdtemp(prefix: string): Promise<string>;
|
|
587
|
+
readdir(path: string, options?: {
|
|
588
|
+
withFileTypes?: false;
|
|
589
|
+
}): Promise<string[]>;
|
|
590
|
+
readdir(path: string, options?: {
|
|
591
|
+
withFileTypes: true;
|
|
592
|
+
}): Promise<RolldownDirectoryEntry[]>;
|
|
593
|
+
readFile(path: string, options?: {
|
|
594
|
+
encoding?: null;
|
|
595
|
+
flag?: string | number;
|
|
596
|
+
signal?: AbortSignal;
|
|
597
|
+
}): Promise<Uint8Array>;
|
|
598
|
+
readFile(path: string, options?: {
|
|
599
|
+
encoding: BufferEncoding;
|
|
600
|
+
flag?: string | number;
|
|
601
|
+
signal?: AbortSignal;
|
|
602
|
+
}): Promise<string>;
|
|
603
|
+
realpath(path: string): Promise<string>;
|
|
604
|
+
rename(oldPath: string, newPath: string): Promise<void>;
|
|
605
|
+
rmdir(path: string, options?: {
|
|
606
|
+
recursive?: boolean;
|
|
607
|
+
}): Promise<void>;
|
|
608
|
+
stat(path: string): Promise<RolldownFileStats>;
|
|
609
|
+
lstat(path: string): Promise<RolldownFileStats>;
|
|
610
|
+
unlink(path: string): Promise<void>;
|
|
611
|
+
writeFile(path: string, data: string | Uint8Array, options?: {
|
|
612
|
+
encoding?: BufferEncoding | null;
|
|
613
|
+
mode?: string | number;
|
|
614
|
+
flag?: string | number;
|
|
615
|
+
}): Promise<void>;
|
|
616
|
+
}
|
|
617
|
+
type BufferEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
|
|
618
|
+
interface RolldownDirectoryEntry {
|
|
619
|
+
isFile(): boolean;
|
|
620
|
+
isDirectory(): boolean;
|
|
621
|
+
isSymbolicLink(): boolean;
|
|
622
|
+
name: string;
|
|
623
|
+
}
|
|
624
|
+
interface RolldownFileStats {
|
|
625
|
+
isFile(): boolean;
|
|
626
|
+
isDirectory(): boolean;
|
|
627
|
+
isSymbolicLink(): boolean;
|
|
628
|
+
size: number;
|
|
629
|
+
mtime: Date;
|
|
630
|
+
ctime: Date;
|
|
631
|
+
atime: Date;
|
|
632
|
+
birthtime: Date;
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
570
635
|
//#region src/plugin/hook-filter.d.ts
|
|
571
636
|
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
572
637
|
include?: MaybeArray<Value>;
|
|
@@ -646,7 +711,7 @@ interface EmittedAsset {
|
|
|
646
711
|
type: "asset";
|
|
647
712
|
name?: string;
|
|
648
713
|
fileName?: string;
|
|
649
|
-
originalFileName?: string
|
|
714
|
+
originalFileName?: string;
|
|
650
715
|
source: AssetSource;
|
|
651
716
|
}
|
|
652
717
|
interface EmittedChunk {
|
|
@@ -665,6 +730,7 @@ interface PluginContextResolveOptions {
|
|
|
665
730
|
}
|
|
666
731
|
type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
|
|
667
732
|
interface PluginContext extends MinimalPluginContext {
|
|
733
|
+
fs: RolldownFsModule;
|
|
668
734
|
emitFile(file: EmittedFile): string;
|
|
669
735
|
getFileName(referenceId: string): string;
|
|
670
736
|
getModuleIds(): IterableIterator<string>;
|
|
@@ -747,11 +813,6 @@ declare function loadFallbackPlugin(): BuiltinPlugin;
|
|
|
747
813
|
declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
|
|
748
814
|
declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
749
815
|
declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
|
|
750
|
-
type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, "remotes"> & {
|
|
751
|
-
remotes?: Record<string, string | BindingRemote>;
|
|
752
|
-
manifest?: boolean | BindingMfManifest;
|
|
753
|
-
};
|
|
754
|
-
declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
|
755
816
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
756
817
|
declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
|
|
757
818
|
declare function webWorkerPostPlugin(): BuiltinPlugin;
|
|
@@ -990,6 +1051,7 @@ interface WatcherOptions {
|
|
|
990
1051
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
991
1052
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
992
1053
|
onInvalidate?: (id: string) => void;
|
|
1054
|
+
clearScreen?: boolean;
|
|
993
1055
|
}
|
|
994
1056
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
995
1057
|
type HmrOptions = boolean | {
|
|
@@ -1270,4 +1332,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
|
|
|
1270
1332
|
declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
1271
1333
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1272
1334
|
//#endregion
|
|
1273
|
-
export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin,
|
|
1335
|
+
export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-gD0LmYxq.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
|
+
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
5
6
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
7
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
7
|
-
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
8
8
|
|
|
9
9
|
//#region src/utils/load-config.ts
|
|
10
10
|
async function bundleTsConfig(configFile, isEsm) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { rolldown } from "./src-
|
|
1
|
+
import { rolldown } from "./src-BSeUgDdv.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
|
+
import { readdir } from "node:fs/promises";
|
|
4
5
|
import { cwd } from "node:process";
|
|
5
6
|
import fs from "node:fs";
|
|
6
|
-
import { readdir } from "node:fs/promises";
|
|
7
7
|
|
|
8
8
|
//#region src/utils/load-config.ts
|
|
9
9
|
async function bundleTsConfig(configFile, isEsm) {
|
|
@@ -102,7 +102,7 @@ function locate(source, search, options) {
|
|
|
102
102
|
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/log/logs.ts
|
|
105
|
-
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", DUPLICATE_JSX_CONFIG = "DUPLICATE_JSX_CONFIG";
|
|
105
|
+
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", DUPLICATE_JSX_CONFIG = "DUPLICATE_JSX_CONFIG", NO_FS_IN_BROWSER = "NO_FS_IN_BROWSER";
|
|
106
106
|
function logParseError(message) {
|
|
107
107
|
return {
|
|
108
108
|
code: PARSE_ERROR,
|
|
@@ -187,7 +187,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
190
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.80.0/node_modules/oxc-parser/wrap.mjs
|
|
191
191
|
function wrap$1(result) {
|
|
192
192
|
let program, module$1, comments, errors;
|
|
193
193
|
return {
|
|
@@ -101,7 +101,7 @@ function locate(source, search, options) {
|
|
|
101
101
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/log/logs.ts
|
|
104
|
-
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", DUPLICATE_JSX_CONFIG = "DUPLICATE_JSX_CONFIG";
|
|
104
|
+
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", DUPLICATE_JSX_CONFIG = "DUPLICATE_JSX_CONFIG", NO_FS_IN_BROWSER = "NO_FS_IN_BROWSER";
|
|
105
105
|
function logParseError(message) {
|
|
106
106
|
return {
|
|
107
107
|
code: PARSE_ERROR,
|
|
@@ -186,7 +186,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
189
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.80.0/node_modules/oxc-parser/wrap.mjs
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
return {
|