@rolldown/browser 1.0.0-beta.31-commit.832324a → 1.0.0-beta.33
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.d.cts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +33 -32
- 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 +1 -1
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- 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.d.cts +1 -1
- package/dist/parallel-plugin-worker.d.mts +1 -1
- package/dist/parallel-plugin-worker.mjs +4 -3
- 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.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-BIqlUgrm.d.cts → binding-CFhvYkVn.d.mts} +4 -3
- package/dist/shared/{binding-COE5UL-B.d.mts → binding-DQk9TN_A.d.cts} +4 -3
- package/dist/shared/{define-config-DFC0Nu7H.d.cts → define-config-B3QOs3Kt.d.cts} +7 -1
- package/dist/shared/{define-config-Cf2D2abn.d.mts → define-config-DyjJkNqG.d.mts} +7 -1
- package/dist/shared/{load-config-CoJFc3w2.mjs → load-config-CLPLfZVe.mjs} +1 -1
- package/dist/shared/{load-config-Dw0YNzS-.cjs → load-config-xKQFLlGV.cjs} +1 -1
- package/dist/shared/{parse-ast-index-CqHkFxPM.mjs → parse-ast-index-BGzB5Bo-.mjs} +1 -1
- package/dist/shared/{parse-ast-index-DAsDnaa1.cjs → parse-ast-index-BZfwAN9P.cjs} +1 -1
- package/dist/shared/{src-DEIlKgUM.cjs → src-CGziNJPr.cjs} +145 -141
- package/dist/shared/{src-38thNb51.mjs → src-CZgQg1yE.mjs} +142 -138
- package/dist/{src-jf6KDQ1I.js → src-D_htlJ_o.js} +252 -248
- package/package.json +2 -2
package/dist/parse-ast-index.mjs
CHANGED
|
Binary file
|
|
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
|
|
|
857
857
|
* from this list, the directory name will be used instead of the file name for
|
|
858
858
|
* the component's display name.
|
|
859
859
|
*
|
|
860
|
-
* @default ["index"]
|
|
860
|
+
* @default `["index"]`
|
|
861
861
|
*/
|
|
862
862
|
meaninglessFileNames?: Array<string>;
|
|
863
863
|
/**
|
|
@@ -920,8 +920,8 @@ interface TransformOptions {
|
|
|
920
920
|
*
|
|
921
921
|
* Example:
|
|
922
922
|
*
|
|
923
|
-
* * 'es2015'
|
|
924
|
-
* * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
|
|
923
|
+
* * `'es2015'`
|
|
924
|
+
* * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
|
|
925
925
|
*
|
|
926
926
|
* @default `esnext` (No transformation)
|
|
927
927
|
*
|
|
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
|
|
|
1226
1226
|
interface BindingManifestPluginConfig {
|
|
1227
1227
|
root: string;
|
|
1228
1228
|
outPath: string;
|
|
1229
|
+
isLegacy?: () => boolean;
|
|
1229
1230
|
cssEntries: () => Set<string>;
|
|
1230
1231
|
}
|
|
1231
1232
|
interface BindingMinifyOptions {
|
|
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
|
|
|
857
857
|
* from this list, the directory name will be used instead of the file name for
|
|
858
858
|
* the component's display name.
|
|
859
859
|
*
|
|
860
|
-
* @default ["index"]
|
|
860
|
+
* @default `["index"]`
|
|
861
861
|
*/
|
|
862
862
|
meaninglessFileNames?: Array<string>;
|
|
863
863
|
/**
|
|
@@ -920,8 +920,8 @@ interface TransformOptions {
|
|
|
920
920
|
*
|
|
921
921
|
* Example:
|
|
922
922
|
*
|
|
923
|
-
* * 'es2015'
|
|
924
|
-
* * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
|
|
923
|
+
* * `'es2015'`
|
|
924
|
+
* * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
|
|
925
925
|
*
|
|
926
926
|
* @default `esnext` (No transformation)
|
|
927
927
|
*
|
|
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
|
|
|
1226
1226
|
interface BindingManifestPluginConfig {
|
|
1227
1227
|
root: string;
|
|
1228
1228
|
outPath: string;
|
|
1229
|
+
isLegacy?: () => boolean;
|
|
1229
1230
|
cssEntries: () => Set<string>;
|
|
1230
1231
|
}
|
|
1231
1232
|
interface BindingMinifyOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DQk9TN_A.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
|
|
|
543
543
|
cwd: string | undefined;
|
|
544
544
|
platform: InputOptions["platform"];
|
|
545
545
|
shimMissingExports: boolean;
|
|
546
|
+
context: string;
|
|
546
547
|
}
|
|
547
548
|
//#endregion
|
|
548
549
|
//#region src/options/normalized-output-options.d.ts
|
|
@@ -1117,6 +1118,11 @@ interface InputOptions {
|
|
|
1117
1118
|
/**
|
|
1118
1119
|
* Expected platform where the code run.
|
|
1119
1120
|
*
|
|
1121
|
+
* When the platform is set to neutral:
|
|
1122
|
+
* - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
|
|
1123
|
+
* - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
|
|
1124
|
+
* - The conditions setting does not automatically include any platform-specific values.
|
|
1125
|
+
*
|
|
1120
1126
|
* @default
|
|
1121
1127
|
* - 'node' if the format is 'cjs'
|
|
1122
1128
|
* - 'browser' for other formats
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CFhvYkVn.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
|
|
|
543
543
|
cwd: string | undefined;
|
|
544
544
|
platform: InputOptions["platform"];
|
|
545
545
|
shimMissingExports: boolean;
|
|
546
|
+
context: string;
|
|
546
547
|
}
|
|
547
548
|
//#endregion
|
|
548
549
|
//#region src/options/normalized-output-options.d.ts
|
|
@@ -1117,6 +1118,11 @@ interface InputOptions {
|
|
|
1117
1118
|
/**
|
|
1118
1119
|
* Expected platform where the code run.
|
|
1119
1120
|
*
|
|
1121
|
+
* When the platform is set to neutral:
|
|
1122
|
+
* - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
|
|
1123
|
+
* - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
|
|
1124
|
+
* - The conditions setting does not automatically include any platform-specific values.
|
|
1125
|
+
*
|
|
1120
1126
|
* @default
|
|
1121
1127
|
* - 'node' if the format is 'cjs'
|
|
1122
1128
|
* - 'browser' for other formats
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-CGziNJPr.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
@@ -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.82.2/node_modules/oxc-parser/wrap.mjs
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
return {
|
|
@@ -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.82.2/node_modules/oxc-parser/wrap.mjs
|
|
191
191
|
function wrap$1(result) {
|
|
192
192
|
let program, module$1, comments, errors;
|
|
193
193
|
return {
|