rolldown 1.0.0-beta.10-commit.81375fe → 1.0.0-beta.10-commit.885ee53
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 -4
- package/dist/config.d.mts +2 -4
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +12 -43
- package/dist/experimental-index.d.mts +12 -43
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.d.cts +2 -3
- package/dist/filter-index.d.mts +2 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- 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 -7
- package/dist/parallel-plugin.d.mts +6 -7
- package/dist/parse-ast-index.d.cts +2 -2
- package/dist/parse-ast-index.d.mts +2 -2
- package/dist/shared/{binding.d-BKOi_hD7.d.cts → binding-BYafUgFF.d.cts} +731 -781
- package/dist/shared/{binding.d-CcC9cav0.d.mts → binding-Dod8fhx9.d.mts} +731 -781
- package/dist/shared/define-config-BetvTt9D.d.cts +1048 -0
- package/dist/shared/define-config-CpexVifn.d.mts +1048 -0
- package/dist/shared/{load-config-bI3e4Rt2.cjs → load-config-DTXGCmId.cjs} +1 -1
- package/dist/shared/{load-config-CFYpL6SK.mjs → load-config-WuIFSl0A.mjs} +1 -1
- package/dist/shared/{src-Bhp6Fp5n.mjs → src-BB5r5vkG.mjs} +46 -16
- package/dist/shared/{src-D0ZOjAa9.cjs → src-DrHV5x1X.cjs} +46 -16
- package/package.json +18 -17
- package/dist/shared/define-config.d-CZCq3rLo.d.cts +0 -1083
- package/dist/shared/define-config.d-OKdRAYhn.d.mts +0 -1083
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-DrHV5x1X.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BvK1MT-L.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-DTXGCmId.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS, __toESM } from "./shared/parse-ast-index-PSQWLeSo.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-BB5r5vkG.mjs";
|
|
3
3
|
import { arraify } from "./shared/misc-BN0nse6C.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-WuIFSl0A.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
7
7
|
import process$1 from "node:process";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-DrHV5x1X.cjs');
|
|
2
2
|
require('./shared/parse-ast-index-BvK1MT-L.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-DTXGCmId.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
6
|
-
|
|
7
6
|
//#endregion
|
|
8
7
|
//#region src/config.d.ts
|
|
9
8
|
declare const VERSION: string;
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CpexVifn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
6
|
-
|
|
7
6
|
//#endregion
|
|
8
7
|
//#region src/config.d.ts
|
|
9
8
|
declare const VERSION: string;
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
export { VERSION, defineConfig, loadConfig };
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./shared/parse-ast-index-PSQWLeSo.mjs";
|
|
2
|
-
import { defineConfig, version } from "./shared/src-
|
|
2
|
+
import { defineConfig, version } from "./shared/src-BB5r5vkG.mjs";
|
|
3
3
|
import "./shared/misc-BN0nse6C.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-WuIFSl0A.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -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-DrHV5x1X.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-BvK1MT-L.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding
|
|
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
|
|
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
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 { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding
|
|
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
|
|
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-CpexVifn.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
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,5 +1,5 @@
|
|
|
1
1
|
import { __toESM, require_binding } from "./shared/parse-ast-index-PSQWLeSo.mjs";
|
|
2
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
2
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-BB5r5vkG.mjs";
|
|
3
3
|
import "./shared/misc-BN0nse6C.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { withFilter } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
|
-
|
|
5
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { withFilter } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-CpexVifn.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
|
-
|
|
5
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding
|
|
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
|
|
3
|
-
|
|
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";
|
|
4
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,4 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding
|
|
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
|
|
3
|
-
|
|
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-CpexVifn.mjs";
|
|
4
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,5 +1,5 @@
|
|
|
1
1
|
import "./shared/parse-ast-index-PSQWLeSo.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-BB5r5vkG.mjs";
|
|
3
3
|
import "./shared/misc-BN0nse6C.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -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-DrHV5x1X.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-BvK1MT-L.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM, require_binding } from "./shared/parse-ast-index-PSQWLeSo.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-BB5r5vkG.mjs";
|
|
3
3
|
import "./shared/misc-BN0nse6C.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-BYafUgFF.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BetvTt9D.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
6
6
|
type Context = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Thread number
|
|
9
|
+
*/
|
|
10
|
+
threadNumber: number;
|
|
11
11
|
};
|
|
12
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config
|
|
1
|
+
import "./shared/binding-Dod8fhx9.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CpexVifn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
6
6
|
type Context = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Thread number
|
|
9
|
+
*/
|
|
10
|
+
threadNumber: number;
|
|
11
11
|
};
|
|
12
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
14
|
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./shared/binding
|
|
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 "./shared/binding
|
|
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 };
|