@rolldown/browser 1.0.0-beta.10-commit.81375fe → 1.0.0-beta.10-commit.2c4c2a8
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 +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -3
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +13 -44
- package/dist/experimental-index.d.mts +13 -44
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.d.cts +3 -2
- package/dist/filter-index.d.mts +3 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.cts +6 -6
- package/dist/parallel-plugin.d.mts +6 -6
- package/dist/parse-ast-index.d.cts +2 -2
- package/dist/parse-ast-index.d.mts +2 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/binding-BYafUgFF.d.cts +1652 -0
- package/dist/shared/binding-Dod8fhx9.d.mts +1652 -0
- package/dist/shared/define-config-BetvTt9D.d.cts +1048 -0
- package/dist/shared/define-config-cqCLLLZ-.d.mts +1048 -0
- package/dist/shared/{load-config-a5TDbL5U.mjs → load-config-CYWG5VGh.mjs} +1 -1
- package/dist/shared/{load-config-Cr472rVH.cjs → load-config-CZJl5O5j.cjs} +1 -1
- package/dist/shared/{src-Cd6dJVwS.cjs → src-BuLkcy4X.cjs} +46 -16
- package/dist/shared/{src-Mp5z-lgE.mjs → src-DjLBYDtp.mjs} +46 -16
- package/dist/{src--mQWdm3h.js → src-C1J_jnOM.js} +46 -16
- package/package.json +1 -1
- package/dist/shared/define-config.d-BDJzbjFe.d.mts +0 -1168
- package/dist/shared/define-config.d-C0X0fNDk.d.cts +0 -1168
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BuLkcy4X.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BuelS_NF.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-CZJl5O5j.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
8
8
|
const node_util = require_chunk.__toESM(require("node:util"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
1
|
+
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-DjLBYDtp.mjs";
|
|
2
2
|
import { arraify } from "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-C31FpvkE.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-CYWG5VGh.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { formatWithOptions, parseArgs } from "node:util";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-BuLkcy4X.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BuelS_NF.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-CZJl5O5j.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BetvTt9D.cjs";
|
|
2
3
|
|
|
3
4
|
//#region src/utils/load-config.d.ts
|
|
4
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
5
|
-
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/config.d.ts
|
|
8
8
|
declare const VERSION: string;
|
|
9
|
-
|
|
10
9
|
//#endregion
|
|
11
10
|
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-cqCLLLZ-.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/utils/load-config.d.ts
|
|
4
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
5
|
-
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/config.d.ts
|
|
8
8
|
declare const VERSION: string;
|
|
9
|
-
|
|
10
9
|
//#endregion
|
|
11
10
|
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-DjLBYDtp.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-C31FpvkE.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-CYWG5VGh.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-C1J_jnOM.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BuLkcy4X.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BuelS_NF.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
|
-
|
|
6
|
-
* This is an experimental API. It's behavior may change in the future.
|
|
7
|
-
*
|
|
8
|
-
* Calling this API will only execute the scan stage of rolldown.
|
|
9
|
-
*/
|
|
5
|
+
|
|
10
6
|
/**
|
|
11
7
|
* This is an experimental API. It's behavior may change in the future.
|
|
12
8
|
*
|
|
13
9
|
* Calling this API will only execute the scan stage of rolldown.
|
|
14
10
|
*/
|
|
15
11
|
declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
16
|
-
|
|
17
12
|
//#endregion
|
|
18
13
|
//#region src/utils/compose-js-plugins.d.ts
|
|
19
14
|
declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
|
|
20
|
-
|
|
21
15
|
//#endregion
|
|
22
16
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
23
17
|
type AliasPluginAlias = {
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
find: string | RegExp;
|
|
19
|
+
replacement: string;
|
|
26
20
|
};
|
|
21
|
+
// A temp config type for giving better user experience
|
|
27
22
|
type AliasPluginConfig = {
|
|
28
|
-
|
|
23
|
+
entries: AliasPluginAlias[];
|
|
29
24
|
};
|
|
30
25
|
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
31
|
-
|
|
32
26
|
//#endregion
|
|
33
27
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
34
28
|
/**
|
|
@@ -55,42 +49,17 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
55
49
|
* })
|
|
56
50
|
* ```
|
|
57
51
|
*/
|
|
58
|
-
/**
|
|
59
|
-
* Replaces targeted strings in files while bundling.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* // Basic usage
|
|
63
|
-
* ```js
|
|
64
|
-
* replacePlugin({
|
|
65
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
66
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
67
|
-
* __buildVersion: 15
|
|
68
|
-
* })
|
|
69
|
-
* ```
|
|
70
|
-
* @example
|
|
71
|
-
* // With options
|
|
72
|
-
* ```js
|
|
73
|
-
* replacePlugin({
|
|
74
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
75
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
76
|
-
* __buildVersion: 15
|
|
77
|
-
* }, {
|
|
78
|
-
* preventAssignment: false,
|
|
79
|
-
* })
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
52
|
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
83
|
-
|
|
84
53
|
//#endregion
|
|
85
54
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
86
55
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
56
|
+
// A temp config type for giving better user experience
|
|
87
57
|
type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
58
|
+
include?: TransformPattern;
|
|
59
|
+
exclude?: TransformPattern;
|
|
60
|
+
jsxRefreshInclude?: TransformPattern;
|
|
61
|
+
jsxRefreshExclude?: TransformPattern;
|
|
92
62
|
};
|
|
93
63
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
|
-
|
|
95
64
|
//#endregion
|
|
96
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
65
|
+
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-cqCLLLZ-.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
|
-
|
|
6
|
-
* This is an experimental API. It's behavior may change in the future.
|
|
7
|
-
*
|
|
8
|
-
* Calling this API will only execute the scan stage of rolldown.
|
|
9
|
-
*/
|
|
5
|
+
|
|
10
6
|
/**
|
|
11
7
|
* This is an experimental API. It's behavior may change in the future.
|
|
12
8
|
*
|
|
13
9
|
* Calling this API will only execute the scan stage of rolldown.
|
|
14
10
|
*/
|
|
15
11
|
declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
16
|
-
|
|
17
12
|
//#endregion
|
|
18
13
|
//#region src/utils/compose-js-plugins.d.ts
|
|
19
14
|
declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
|
|
20
|
-
|
|
21
15
|
//#endregion
|
|
22
16
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
23
17
|
type AliasPluginAlias = {
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
find: string | RegExp;
|
|
19
|
+
replacement: string;
|
|
26
20
|
};
|
|
21
|
+
// A temp config type for giving better user experience
|
|
27
22
|
type AliasPluginConfig = {
|
|
28
|
-
|
|
23
|
+
entries: AliasPluginAlias[];
|
|
29
24
|
};
|
|
30
25
|
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
31
|
-
|
|
32
26
|
//#endregion
|
|
33
27
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
34
28
|
/**
|
|
@@ -55,42 +49,17 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
|
55
49
|
* })
|
|
56
50
|
* ```
|
|
57
51
|
*/
|
|
58
|
-
/**
|
|
59
|
-
* Replaces targeted strings in files while bundling.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* // Basic usage
|
|
63
|
-
* ```js
|
|
64
|
-
* replacePlugin({
|
|
65
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
66
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
67
|
-
* __buildVersion: 15
|
|
68
|
-
* })
|
|
69
|
-
* ```
|
|
70
|
-
* @example
|
|
71
|
-
* // With options
|
|
72
|
-
* ```js
|
|
73
|
-
* replacePlugin({
|
|
74
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
75
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
76
|
-
* __buildVersion: 15
|
|
77
|
-
* }, {
|
|
78
|
-
* preventAssignment: false,
|
|
79
|
-
* })
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
52
|
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
83
|
-
|
|
84
53
|
//#endregion
|
|
85
54
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
86
55
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
56
|
+
// A temp config type for giving better user experience
|
|
87
57
|
type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
58
|
+
include?: TransformPattern;
|
|
59
|
+
exclude?: TransformPattern;
|
|
60
|
+
jsxRefreshInclude?: TransformPattern;
|
|
61
|
+
jsxRefreshExclude?: TransformPattern;
|
|
92
62
|
};
|
|
93
63
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
|
-
|
|
95
64
|
//#endregion
|
|
96
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
65
|
+
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-DjLBYDtp.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-C31FpvkE.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-cqCLLLZ-.mjs";
|
|
3
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-cqCLLLZ-.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DjLBYDtp.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-C31FpvkE.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BuLkcy4X.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BuelS_NF.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-DjLBYDtp.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-C31FpvkE.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BetvTt9D.cjs";
|
|
2
3
|
|
|
3
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
5
|
type ParallelPluginImplementation = Plugin;
|
|
5
6
|
type Context = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Thread number
|
|
9
|
+
*/
|
|
10
|
+
threadNumber: number;
|
|
10
11
|
};
|
|
11
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
12
|
-
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-cqCLLLZ-.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
5
|
type ParallelPluginImplementation = Plugin;
|
|
5
6
|
type Context = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Thread number
|
|
9
|
+
*/
|
|
10
|
+
threadNumber: number;
|
|
10
11
|
};
|
|
11
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
12
|
-
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./
|
|
1
|
+
import { ParseResult, ParserOptions } from "./shared/binding-BYafUgFF.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/parse-ast-index.d.ts
|
|
5
|
+
// The api compat to rollup `parseAst` and `parseAstAsync`.
|
|
5
6
|
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
6
7
|
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
7
|
-
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ParseResult, ParserOptions, parseAst, parseAstAsync };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./
|
|
1
|
+
import { ParseResult, ParserOptions } from "./shared/binding-Dod8fhx9.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/parse-ast-index.d.ts
|
|
5
|
+
// The api compat to rollup `parseAst` and `parseAstAsync`.
|
|
5
6
|
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
6
7
|
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
7
|
-
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ParseResult, ParserOptions, parseAst, parseAstAsync };
|
|
Binary file
|