@rolldown/browser 1.0.0-beta.33 → 1.0.0-beta.34
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 +31 -31
- package/dist/cli.mjs +31 -31
- 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 +34 -3
- package/dist/experimental-index.cjs +36 -2
- package/dist/experimental-index.d.cts +36 -4
- package/dist/experimental-index.d.mts +36 -4
- package/dist/experimental-index.mjs +35 -4
- 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 +2 -2
- package/dist/index.d.mts +2 -2
- 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 +3 -0
- package/dist/rolldown-binding.wasi.cjs +3 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-CFhvYkVn.d.mts → binding-9k0egz6L.d.mts} +107 -7
- package/dist/shared/{binding-DQk9TN_A.d.cts → binding-D13M6Llu.d.cts} +107 -7
- package/dist/shared/{define-config-B3QOs3Kt.d.cts → define-config-D5AluabE.d.cts} +63 -24
- package/dist/shared/{define-config-DyjJkNqG.d.mts → define-config-DzIQxNqU.d.mts} +63 -24
- package/dist/shared/{load-config-CLPLfZVe.mjs → load-config--VYNOtUY.mjs} +1 -1
- package/dist/shared/{load-config-xKQFLlGV.cjs → load-config-DfHD1OI9.cjs} +1 -1
- package/dist/shared/{parse-ast-index-BGzB5Bo-.mjs → parse-ast-index-C_CZT4St.mjs} +1 -1
- package/dist/shared/{parse-ast-index-BZfwAN9P.cjs → parse-ast-index-ChWj_C49.cjs} +1 -1
- package/dist/shared/{src-CZgQg1yE.mjs → src-B4V64IkU.mjs} +105 -90
- package/dist/shared/{src-CGziNJPr.cjs → src-McCMqGpa.cjs} +122 -95
- package/dist/{src-D_htlJ_o.js → src-Bl12Y5ab.js} +102 -87
- package/package.json +19 -11
|
@@ -27,18 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "1.0.0-beta.
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/utils/normalize-string-or-regex.ts
|
|
34
|
-
function normalizedStringOrRegex(pattern) {
|
|
35
|
-
if (!pattern) return void 0;
|
|
36
|
-
if (!isReadonlyArray(pattern)) return [pattern];
|
|
37
|
-
return pattern;
|
|
38
|
-
}
|
|
39
|
-
function isReadonlyArray(input) {
|
|
40
|
-
return Array.isArray(input);
|
|
41
|
-
}
|
|
30
|
+
var version = "1.0.0-beta.34";
|
|
42
31
|
|
|
43
32
|
//#endregion
|
|
44
33
|
//#region src/utils/code-frame.ts
|
|
@@ -234,6 +223,12 @@ function augmentCodeLocation(properties, pos, source, id$1) {
|
|
|
234
223
|
|
|
235
224
|
//#endregion
|
|
236
225
|
//#region src/builtin-plugin/utils.ts
|
|
226
|
+
var BuiltinPlugin = class {
|
|
227
|
+
constructor(name, _options) {
|
|
228
|
+
this.name = name;
|
|
229
|
+
this._options = _options;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
237
232
|
function makeBuiltinPluginCallable(plugin) {
|
|
238
233
|
let callablePlugin = new BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
239
234
|
const wrappedPlugin = plugin;
|
|
@@ -257,64 +252,6 @@ function bindingifyBuiltInPlugin(plugin) {
|
|
|
257
252
|
};
|
|
258
253
|
}
|
|
259
254
|
|
|
260
|
-
//#endregion
|
|
261
|
-
//#region src/builtin-plugin/constructors.ts
|
|
262
|
-
var BuiltinPlugin = class {
|
|
263
|
-
constructor(name, _options) {
|
|
264
|
-
this.name = name;
|
|
265
|
-
this._options = _options;
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
function modulePreloadPolyfillPlugin(config) {
|
|
269
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
270
|
-
}
|
|
271
|
-
function dynamicImportVarsPlugin(config) {
|
|
272
|
-
if (config) {
|
|
273
|
-
config.include = normalizedStringOrRegex(config.include);
|
|
274
|
-
config.exclude = normalizedStringOrRegex(config.exclude);
|
|
275
|
-
}
|
|
276
|
-
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
277
|
-
}
|
|
278
|
-
function importGlobPlugin(config) {
|
|
279
|
-
return new BuiltinPlugin("builtin:import-glob", config);
|
|
280
|
-
}
|
|
281
|
-
function reporterPlugin(config) {
|
|
282
|
-
return new BuiltinPlugin("builtin:reporter", config);
|
|
283
|
-
}
|
|
284
|
-
function manifestPlugin(config) {
|
|
285
|
-
return new BuiltinPlugin("builtin:manifest", config);
|
|
286
|
-
}
|
|
287
|
-
function wasmHelperPlugin(config) {
|
|
288
|
-
return new BuiltinPlugin("builtin:wasm-helper", config);
|
|
289
|
-
}
|
|
290
|
-
function wasmFallbackPlugin() {
|
|
291
|
-
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
292
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
293
|
-
}
|
|
294
|
-
function loadFallbackPlugin() {
|
|
295
|
-
return new BuiltinPlugin("builtin:load-fallback");
|
|
296
|
-
}
|
|
297
|
-
function jsonPlugin(config) {
|
|
298
|
-
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
299
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
300
|
-
}
|
|
301
|
-
function buildImportAnalysisPlugin(config) {
|
|
302
|
-
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
303
|
-
}
|
|
304
|
-
function viteResolvePlugin(config) {
|
|
305
|
-
const builtinPlugin = new BuiltinPlugin("builtin:vite-resolve", config);
|
|
306
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
307
|
-
}
|
|
308
|
-
function isolatedDeclarationPlugin(config) {
|
|
309
|
-
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
310
|
-
}
|
|
311
|
-
function assetPlugin(config) {
|
|
312
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
313
|
-
}
|
|
314
|
-
function webWorkerPostPlugin() {
|
|
315
|
-
return new BuiltinPlugin("builtin:web-worker-post");
|
|
316
|
-
}
|
|
317
|
-
|
|
318
255
|
//#endregion
|
|
319
256
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
320
257
|
let _lazyMatch = () => {
|
|
@@ -911,6 +848,72 @@ function normalizeHook(hook) {
|
|
|
911
848
|
unreachable("Invalid hook type");
|
|
912
849
|
}
|
|
913
850
|
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/utils/normalize-string-or-regex.ts
|
|
853
|
+
function normalizedStringOrRegex(pattern) {
|
|
854
|
+
if (!pattern) return void 0;
|
|
855
|
+
if (!isReadonlyArray(pattern)) return [pattern];
|
|
856
|
+
return pattern;
|
|
857
|
+
}
|
|
858
|
+
function isReadonlyArray(input) {
|
|
859
|
+
return Array.isArray(input);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region src/builtin-plugin/constructors.ts
|
|
864
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
865
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
866
|
+
}
|
|
867
|
+
function dynamicImportVarsPlugin(config) {
|
|
868
|
+
if (config) {
|
|
869
|
+
config.include = normalizedStringOrRegex(config.include);
|
|
870
|
+
config.exclude = normalizedStringOrRegex(config.exclude);
|
|
871
|
+
}
|
|
872
|
+
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
873
|
+
}
|
|
874
|
+
function importGlobPlugin(config) {
|
|
875
|
+
return new BuiltinPlugin("builtin:import-glob", config);
|
|
876
|
+
}
|
|
877
|
+
function reporterPlugin(config) {
|
|
878
|
+
return new BuiltinPlugin("builtin:reporter", config);
|
|
879
|
+
}
|
|
880
|
+
function manifestPlugin(config) {
|
|
881
|
+
return new BuiltinPlugin("builtin:manifest", config);
|
|
882
|
+
}
|
|
883
|
+
function wasmHelperPlugin(config) {
|
|
884
|
+
return new BuiltinPlugin("builtin:wasm-helper", config);
|
|
885
|
+
}
|
|
886
|
+
function wasmFallbackPlugin() {
|
|
887
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
888
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
889
|
+
}
|
|
890
|
+
function loadFallbackPlugin() {
|
|
891
|
+
return new BuiltinPlugin("builtin:load-fallback");
|
|
892
|
+
}
|
|
893
|
+
function jsonPlugin(config) {
|
|
894
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
895
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
896
|
+
}
|
|
897
|
+
function buildImportAnalysisPlugin(config) {
|
|
898
|
+
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
899
|
+
}
|
|
900
|
+
function viteResolvePlugin(config) {
|
|
901
|
+
const builtinPlugin = new BuiltinPlugin("builtin:vite-resolve", config);
|
|
902
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
903
|
+
}
|
|
904
|
+
function isolatedDeclarationPlugin(config) {
|
|
905
|
+
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
906
|
+
}
|
|
907
|
+
function assetPlugin(config) {
|
|
908
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
909
|
+
}
|
|
910
|
+
function webWorkerPostPlugin() {
|
|
911
|
+
return new BuiltinPlugin("builtin:web-worker-post");
|
|
912
|
+
}
|
|
913
|
+
function esmExternalRequirePlugin(config) {
|
|
914
|
+
return new BuiltinPlugin("builtin:esm-external-require", config);
|
|
915
|
+
}
|
|
916
|
+
|
|
914
917
|
//#endregion
|
|
915
918
|
//#region src/constants/plugin.ts
|
|
916
919
|
const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES = [
|
|
@@ -2175,6 +2178,7 @@ var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis
|
|
|
2175
2178
|
//#endregion
|
|
2176
2179
|
//#region ../../node_modules/.pnpm/ansis@4.1.0/node_modules/ansis/index.mjs
|
|
2177
2180
|
var import_ansis = /* @__PURE__ */ __toESM(require_ansis(), 1);
|
|
2181
|
+
var ansis_default = import_ansis.default;
|
|
2178
2182
|
const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
|
|
2179
2183
|
|
|
2180
2184
|
//#endregion
|
|
@@ -2272,7 +2276,7 @@ const TransformOptionsSchema = object({
|
|
|
2272
2276
|
typescript: optional(TypescriptSchema),
|
|
2273
2277
|
helpers: optional(HelpersSchema),
|
|
2274
2278
|
decorators: optional(DecoratorOptionSchema),
|
|
2275
|
-
jsx: optional(JsxOptionsSchema),
|
|
2279
|
+
jsx: optional(union([literal("preserve"), JsxOptionsSchema])),
|
|
2276
2280
|
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment"))
|
|
2277
2281
|
});
|
|
2278
2282
|
const WatchOptionsSchema = strictObject({
|
|
@@ -2300,7 +2304,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
2300
2304
|
commonJsVariableInEsm: pipe(optional(boolean()), description("Whether to emit warning when detecting common js variable in esm")),
|
|
2301
2305
|
importIsUndefined: pipe(optional(boolean()), description("Whether to emit warning when detecting import is undefined")),
|
|
2302
2306
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
|
|
2303
|
-
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict"))
|
|
2307
|
+
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
2308
|
+
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature"))
|
|
2304
2309
|
});
|
|
2305
2310
|
const MinifyOptionsSchema = strictObject({
|
|
2306
2311
|
mangle: optional(boolean()),
|
|
@@ -2318,7 +2323,6 @@ const ResolveOptionsSchema = strictObject({
|
|
|
2318
2323
|
mainFiles: optional(array(string())),
|
|
2319
2324
|
modules: optional(array(string())),
|
|
2320
2325
|
symlinks: optional(boolean()),
|
|
2321
|
-
tsconfigFilename: optional(string()),
|
|
2322
2326
|
yarnPnp: optional(boolean())
|
|
2323
2327
|
});
|
|
2324
2328
|
const TreeshakingOptionsSchema = union([boolean(), looseObject({
|
|
@@ -2353,11 +2357,11 @@ const InputOptionsSchema = strictObject({
|
|
|
2353
2357
|
literal("browser"),
|
|
2354
2358
|
literal("neutral"),
|
|
2355
2359
|
literal("node")
|
|
2356
|
-
])), description(`Platform for which the code should be generated (node, ${
|
|
2360
|
+
])), description(`Platform for which the code should be generated (node, ${ansis_default.underline("browser")}, neutral)`)),
|
|
2357
2361
|
shimMissingExports: pipe(optional(boolean()), description("Create shim variables for missing exports")),
|
|
2358
2362
|
treeshake: optional(TreeshakingOptionsSchema),
|
|
2359
2363
|
optimization: optional(OptimizationOptionsSchema),
|
|
2360
|
-
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${
|
|
2364
|
+
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${ansis_default.dim("silent")}, ${ansis_default.underline(ansis_default.gray("info"))}, debug, ${ansis_default.yellow("warn")})`)),
|
|
2361
2365
|
onLog: optional(OnLogSchema),
|
|
2362
2366
|
onwarn: optional(OnwarnSchema),
|
|
2363
2367
|
moduleTypes: pipe(optional(ModuleTypesSchema), description("Module types for customized extensions")),
|
|
@@ -2402,7 +2406,8 @@ const InputOptionsSchema = strictObject({
|
|
|
2402
2406
|
literal("allow-extension"),
|
|
2403
2407
|
literal("exports-only"),
|
|
2404
2408
|
literal(false)
|
|
2405
|
-
])))
|
|
2409
|
+
]))),
|
|
2410
|
+
tsconfig: pipe(optional(string()), description("Path to the tsconfig.json file."))
|
|
2406
2411
|
});
|
|
2407
2412
|
const InputCliOverrideSchema = strictObject({
|
|
2408
2413
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2475,18 +2480,18 @@ const OutputOptionsSchema = strictObject({
|
|
|
2475
2480
|
literal("named"),
|
|
2476
2481
|
literal("default"),
|
|
2477
2482
|
literal("none")
|
|
2478
|
-
])), description(`Specify a export mode (${
|
|
2483
|
+
])), description(`Specify a export mode (${ansis_default.underline("auto")}, named, default, none)`)),
|
|
2479
2484
|
hashCharacters: pipe(optional(union([
|
|
2480
2485
|
literal("base64"),
|
|
2481
2486
|
literal("base36"),
|
|
2482
2487
|
literal("hex")
|
|
2483
2488
|
])), description("Use the specified character set for file hashes")),
|
|
2484
|
-
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${
|
|
2489
|
+
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${ansis_default.underline("esm")}, cjs, and iife)`)),
|
|
2485
2490
|
sourcemap: pipe(optional(union([
|
|
2486
2491
|
boolean(),
|
|
2487
2492
|
literal("inline"),
|
|
2488
2493
|
literal("hidden")
|
|
2489
|
-
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${
|
|
2494
|
+
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${ansis_default.bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)),
|
|
2490
2495
|
sourcemapBaseUrl: pipe(optional(string()), description("Base URL used to prefix sourcemap paths")),
|
|
2491
2496
|
sourcemapDebugIds: pipe(optional(boolean()), description("Inject sourcemap debug IDs")),
|
|
2492
2497
|
sourcemapIgnoreList: optional(union([boolean(), custom(() => true)])),
|
|
@@ -2524,10 +2529,11 @@ const OutputOptionsSchema = strictObject({
|
|
|
2524
2529
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2525
2530
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2526
2531
|
virtualDirname: optional(string()),
|
|
2527
|
-
minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports"))
|
|
2532
|
+
minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports")),
|
|
2533
|
+
topLevelVar: pipe(optional(boolean()), description("Rewrite top-level declarations to use `var`."))
|
|
2528
2534
|
});
|
|
2529
2535
|
const getAddonDescription = (placement, wrapper) => {
|
|
2530
|
-
return `Code to insert the ${
|
|
2536
|
+
return `Code to insert the ${ansis_default.bold(placement)} of the bundled file (${ansis_default.bold(wrapper)} the wrapper function)`;
|
|
2531
2537
|
};
|
|
2532
2538
|
const OutputCliOverrideSchema = strictObject({
|
|
2533
2539
|
assetFileNames: pipe(optional(string()), description("Name pattern for asset files")),
|
|
@@ -2956,7 +2962,7 @@ function bindingPluginOrder(order) {
|
|
|
2956
2962
|
}
|
|
2957
2963
|
|
|
2958
2964
|
//#endregion
|
|
2959
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.82.
|
|
2965
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.82.3/node_modules/oxc-parser/wrap.mjs
|
|
2960
2966
|
function wrap$1(result) {
|
|
2961
2967
|
let program, module$1, comments, errors;
|
|
2962
2968
|
return {
|
|
@@ -3122,7 +3128,8 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
3122
3128
|
...res,
|
|
3123
3129
|
external: res.external === "relative" ? unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,
|
|
3124
3130
|
...info,
|
|
3125
|
-
moduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null
|
|
3131
|
+
moduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null,
|
|
3132
|
+
packageJsonPath: res.packageJsonPath
|
|
3126
3133
|
};
|
|
3127
3134
|
}
|
|
3128
3135
|
emitFile = (file) => {
|
|
@@ -3248,7 +3255,8 @@ function bindingifyResolveId(args$1) {
|
|
|
3248
3255
|
id: ret.id,
|
|
3249
3256
|
external: ret.external,
|
|
3250
3257
|
normalizeExternalId: false,
|
|
3251
|
-
moduleSideEffects: exist.moduleSideEffects ?? void 0
|
|
3258
|
+
moduleSideEffects: exist.moduleSideEffects ?? void 0,
|
|
3259
|
+
packageJsonPath: ret.packageJsonPath
|
|
3252
3260
|
};
|
|
3253
3261
|
},
|
|
3254
3262
|
meta: bindingifyPluginHookMeta(meta),
|
|
@@ -4174,7 +4182,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
4174
4182
|
return this.outputOptions.sourcemapPathTransform;
|
|
4175
4183
|
}
|
|
4176
4184
|
get minify() {
|
|
4177
|
-
|
|
4185
|
+
let ret = this.inner.minify;
|
|
4186
|
+
if (typeof ret === "object" && ret !== null) {
|
|
4187
|
+
delete ret["codegen"];
|
|
4188
|
+
delete ret["module"];
|
|
4189
|
+
delete ret["sourcemap"];
|
|
4190
|
+
}
|
|
4191
|
+
return ret;
|
|
4178
4192
|
}
|
|
4179
4193
|
get legalComments() {
|
|
4180
4194
|
return this.inner.legalComments;
|
|
@@ -4358,7 +4372,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4358
4372
|
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
4359
4373
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
4360
4374
|
optimization: inputOptions.optimization,
|
|
4361
|
-
context: inputOptions.context
|
|
4375
|
+
context: inputOptions.context,
|
|
4376
|
+
tsconfig: inputOptions.tsconfig
|
|
4362
4377
|
};
|
|
4363
4378
|
}
|
|
4364
4379
|
function bindingifyHmr(hmr) {
|
|
@@ -4855,4 +4870,4 @@ function defineConfig(config) {
|
|
|
4855
4870
|
const VERSION = version;
|
|
4856
4871
|
|
|
4857
4872
|
//#endregion
|
|
4858
|
-
export { BuiltinPlugin, PluginDriver, VERSION, assetPlugin, build, buildImportAnalysisPlugin, createBundlerImpl, defineConfig, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
|
4873
|
+
export { BuiltinPlugin, PluginDriver, VERSION, assetPlugin, build, buildImportAnalysisPlugin, createBundlerImpl, createBundlerOptions, defineConfig, dynamicImportVarsPlugin, esmExternalRequirePlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.34",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -32,21 +32,29 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"browser": "./dist/index.browser.mjs",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
36
|
+
"require": "./dist/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"import": "./dist/config.mjs",
|
|
40
|
+
"require": "./dist/config.cjs"
|
|
37
41
|
},
|
|
38
42
|
"./experimental": {
|
|
39
43
|
"browser": "./dist/experimental-index.browser.mjs",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
44
|
+
"import": "./dist/experimental-index.mjs",
|
|
45
|
+
"require": "./dist/experimental-index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./filter": {
|
|
48
|
+
"import": "./dist/filter-index.mjs",
|
|
49
|
+
"require": "./dist/filter-index.cjs"
|
|
42
50
|
},
|
|
43
|
-
"./
|
|
44
|
-
"
|
|
45
|
-
"
|
|
51
|
+
"./parallelPlugin": {
|
|
52
|
+
"import": "./dist/parallel-plugin.mjs",
|
|
53
|
+
"require": "./dist/parallel-plugin.cjs"
|
|
46
54
|
},
|
|
47
55
|
"./parseAst": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
56
|
+
"import": "./dist/parse-ast-index.mjs",
|
|
57
|
+
"require": "./dist/parse-ast-index.cjs"
|
|
50
58
|
},
|
|
51
59
|
"./package.json": "./package.json"
|
|
52
60
|
},
|
|
@@ -56,7 +64,7 @@
|
|
|
56
64
|
},
|
|
57
65
|
"dependencies": {
|
|
58
66
|
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
59
|
-
"@oxc-project/runtime": "=0.82.
|
|
67
|
+
"@oxc-project/runtime": "=0.82.3"
|
|
60
68
|
},
|
|
61
69
|
"scripts": {
|
|
62
70
|
"build": "pnpm run build:debug",
|