@rolldown/browser 1.0.0-beta.9-commit.0ec9e7d → 1.0.0-rc.2
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-setup.mjs +16 -0
- package/dist/cli.mjs +1084 -1281
- package/dist/config.d.mts +1 -3
- package/dist/config.mjs +7 -5
- package/dist/constructors-B8gqcrFr.js +61 -0
- package/dist/experimental-index.browser.mjs +225 -50
- package/dist/experimental-index.d.mts +164 -76
- package/dist/experimental-index.mjs +220 -60
- package/dist/experimental-runtime-types.d.ts +98 -0
- package/dist/filter-index.d.mts +104 -2
- package/dist/filter-index.mjs +123 -3
- package/dist/get-log-filter.d.mts +7 -0
- package/dist/get-log-filter.mjs +48 -0
- package/dist/index.browser.mjs +242 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +54 -5
- package/dist/{shared/parse-ast-index-BHaE0ECV.cjs → normalize-string-or-regex-CL-PJZI7.js} +70 -137
- package/dist/parallel-plugin-worker.mjs +26 -33
- package/dist/parallel-plugin.d.mts +7 -7
- package/dist/parse-ast-index.d.mts +5 -6
- package/dist/parse-ast-index.mjs +1 -2
- package/dist/plugins-index.browser.mjs +39 -0
- package/dist/plugins-index.d.mts +30 -0
- package/dist/plugins-index.mjs +39 -0
- package/dist/rolldown-binding.wasi-browser.js +41 -24
- package/dist/rolldown-binding.wasi.cjs +62 -24
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/rolldown-build-BntP6Bjl.js +5063 -0
- package/dist/shared/bindingify-input-options-CObJx_Uj.mjs +2236 -0
- package/dist/shared/composable-filters-CIxSuZSM.mjs +227 -0
- package/dist/shared/constructors-5bt5oBhE.d.mts +28 -0
- package/dist/shared/constructors-BTW-c3jX.mjs +61 -0
- package/dist/shared/define-config-C-sO_cLw.d.mts +3679 -0
- package/dist/shared/define-config-Dlptvz3X.mjs +7 -0
- package/dist/shared/{load-config-D7UduHRZ.mjs → load-config-hx3WBhLe.mjs} +23 -33
- package/dist/shared/logging-RB67zQ4N.d.mts +50 -0
- package/dist/shared/{parse-ast-index-vu376yZ1.mjs → logs-B2CASPcx.mjs} +21 -116
- package/dist/shared/normalize-string-or-regex-DIwprzLy.mjs +60 -0
- package/dist/shared/parse-ast-index-BQpfNG1v.mjs +98 -0
- package/dist/shared/{prompt-CxjDC0Gn.cjs → prompt-CYPmuhh-.mjs} +301 -308
- package/dist/shared/rolldown-D2E0YTeB.mjs +42 -0
- package/dist/shared/rolldown-build-Do6WlRGM.mjs +2371 -0
- package/dist/shared/types-CIhJMr1h.d.mts +1300 -0
- package/dist/shared/utils-CqMTwlsR.d.mts +22 -0
- package/dist/shared/watch-BsneBCNP.mjs +378 -0
- package/package.json +33 -38
- package/dist/cli.cjs +0 -1748
- package/dist/config.cjs +0 -12
- package/dist/config.d.cts +0 -11
- package/dist/experimental-index.cjs +0 -129
- package/dist/experimental-index.d.cts +0 -96
- package/dist/filter-index.cjs +0 -53
- package/dist/filter-index.d.cts +0 -3
- package/dist/index.cjs +0 -9
- package/dist/index.d.cts +0 -3
- package/dist/parallel-plugin-worker.cjs +0 -33
- package/dist/parallel-plugin-worker.d.cts +0 -1
- package/dist/parallel-plugin.cjs +0 -8
- package/dist/parallel-plugin.d.cts +0 -14
- package/dist/parse-ast-index.cjs +0 -4
- package/dist/parse-ast-index.d.cts +0 -9
- package/dist/shared/chunk-DDkG_k5U.cjs +0 -39
- package/dist/shared/chunk-DSsiIF1Z.mjs +0 -30
- package/dist/shared/define-config.d-D4lKXE9V.d.cts +0 -1165
- package/dist/shared/define-config.d-Dm9iNdt9.d.mts +0 -1165
- package/dist/shared/dist-BMVjvV-v.cjs +0 -249
- package/dist/shared/dist-CAn6dxW6.mjs +0 -153
- package/dist/shared/load-config-CtKjQ8Mn.cjs +0 -125
- package/dist/shared/prompt-GFYxfPw7.mjs +0 -854
- package/dist/shared/src-D0nc44MQ.mjs +0 -4691
- package/dist/shared/src-s89s870G.cjs +0 -4647
- package/dist/src-CeWghjQt.js +0 -4329
- /package/dist/{cli.d.cts → cli-setup.d.mts} +0 -0
package/dist/config.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const require_src = require('./shared/src-s89s870G.cjs');
|
|
2
|
-
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-CtKjQ8Mn.cjs');
|
|
5
|
-
|
|
6
|
-
//#region src/config.ts
|
|
7
|
-
const VERSION = require_src.version;
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
exports.VERSION = VERSION;
|
|
11
|
-
exports.defineConfig = require_src.defineConfig;
|
|
12
|
-
exports.loadConfig = require_load_config.loadConfig;
|
package/dist/config.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/utils/load-config.d.ts
|
|
4
|
-
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region src/config.d.ts
|
|
8
|
-
declare const VERSION: string;
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-s89s870G.cjs');
|
|
3
|
-
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
5
|
-
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
|
-
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
|
-
|
|
8
|
-
//#region src/api/experimental.ts
|
|
9
|
-
/**
|
|
10
|
-
* This is an experimental API. It's behavior may change in the future.
|
|
11
|
-
*
|
|
12
|
-
* Calling this API will only execute the scan stage of rolldown.
|
|
13
|
-
*/
|
|
14
|
-
const experimental_scan = async (input) => {
|
|
15
|
-
const { bundler, stopWorkers } = await require_src.createBundler(input, {});
|
|
16
|
-
const output = await bundler.scan();
|
|
17
|
-
require_src.handleOutputErrors(output);
|
|
18
|
-
await stopWorkers?.();
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/plugin/parallel-plugin.ts
|
|
23
|
-
function defineParallelPlugin(pluginPath) {
|
|
24
|
-
return (options) => {
|
|
25
|
-
return { _parallel: {
|
|
26
|
-
fileUrl: (0, node_url.pathToFileURL)(pluginPath).href,
|
|
27
|
-
options
|
|
28
|
-
} };
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/builtin-plugin/alias-plugin.ts
|
|
34
|
-
function aliasPlugin(config) {
|
|
35
|
-
return new require_src.BuiltinPlugin("builtin:alias", config);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/builtin-plugin/replace-plugin.ts
|
|
40
|
-
/**
|
|
41
|
-
* Replaces targeted strings in files while bundling.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* // Basic usage
|
|
45
|
-
* ```js
|
|
46
|
-
* replacePlugin({
|
|
47
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
48
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
49
|
-
* __buildVersion: 15
|
|
50
|
-
* })
|
|
51
|
-
* ```
|
|
52
|
-
* @example
|
|
53
|
-
* // With options
|
|
54
|
-
* ```js
|
|
55
|
-
* replacePlugin({
|
|
56
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
57
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
58
|
-
* __buildVersion: 15
|
|
59
|
-
* }, {
|
|
60
|
-
* preventAssignment: false,
|
|
61
|
-
* })
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
function replacePlugin(values = {}, options = {}) {
|
|
65
|
-
return new require_src.BuiltinPlugin("builtin:replace", {
|
|
66
|
-
...options,
|
|
67
|
-
values
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/builtin-plugin/transform-plugin.ts
|
|
73
|
-
function transformPlugin(config) {
|
|
74
|
-
if (config) config = {
|
|
75
|
-
...config,
|
|
76
|
-
include: require_src.normalizedStringOrRegex(config.include),
|
|
77
|
-
exclude: require_src.normalizedStringOrRegex(config.exclude),
|
|
78
|
-
jsxRefreshInclude: require_src.normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
79
|
-
jsxRefreshExclude: require_src.normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
80
|
-
};
|
|
81
|
-
return new require_src.BuiltinPlugin("builtin:transform", config);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
Object.defineProperty(exports, 'ResolverFactory', {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () {
|
|
88
|
-
return src_rolldown_binding_wasi_cjs.ResolverFactory;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
exports.aliasPlugin = aliasPlugin;
|
|
92
|
-
exports.assetPlugin = require_src.assetPlugin;
|
|
93
|
-
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
|
|
94
|
-
exports.composePlugins = require_src.composeJsPlugins;
|
|
95
|
-
exports.defineParallelPlugin = defineParallelPlugin;
|
|
96
|
-
exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin;
|
|
97
|
-
exports.importGlobPlugin = require_src.importGlobPlugin;
|
|
98
|
-
Object.defineProperty(exports, 'isolatedDeclaration', {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return src_rolldown_binding_wasi_cjs.isolatedDeclaration;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin;
|
|
105
|
-
exports.jsonPlugin = require_src.jsonPlugin;
|
|
106
|
-
exports.loadFallbackPlugin = require_src.loadFallbackPlugin;
|
|
107
|
-
exports.manifestPlugin = require_src.manifestPlugin;
|
|
108
|
-
exports.moduleFederationPlugin = require_src.moduleFederationPlugin;
|
|
109
|
-
exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin;
|
|
110
|
-
Object.defineProperty(exports, 'moduleRunnerTransform', {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
get: function () {
|
|
113
|
-
return src_rolldown_binding_wasi_cjs.moduleRunnerTransform;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
exports.replacePlugin = replacePlugin;
|
|
117
|
-
exports.reporterPlugin = require_src.reporterPlugin;
|
|
118
|
-
exports.scan = experimental_scan;
|
|
119
|
-
Object.defineProperty(exports, 'transform', {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () {
|
|
122
|
-
return src_rolldown_binding_wasi_cjs.transform;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
exports.transformPlugin = transformPlugin;
|
|
126
|
-
exports.viteResolvePlugin = require_src.viteResolvePlugin;
|
|
127
|
-
exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin;
|
|
128
|
-
exports.wasmHelperPlugin = require_src.wasmHelperPlugin;
|
|
129
|
-
exports.webWorkerPostPlugin = require_src.webWorkerPostPlugin;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
|
-
|
|
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
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* This is an experimental API. It's behavior may change in the future.
|
|
12
|
-
*
|
|
13
|
-
* Calling this API will only execute the scan stage of rolldown.
|
|
14
|
-
*/
|
|
15
|
-
declare const experimental_scan: (input: InputOptions) => Promise<void>;
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/utils/compose-js-plugins.d.ts
|
|
19
|
-
declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
23
|
-
type AliasPluginAlias = {
|
|
24
|
-
find: string | RegExp
|
|
25
|
-
replacement: string
|
|
26
|
-
};
|
|
27
|
-
type AliasPluginConfig = {
|
|
28
|
-
entries: AliasPluginAlias[]
|
|
29
|
-
};
|
|
30
|
-
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
34
|
-
/**
|
|
35
|
-
* Replaces targeted strings in files while bundling.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* // Basic usage
|
|
39
|
-
* ```js
|
|
40
|
-
* replacePlugin({
|
|
41
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
42
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
43
|
-
* __buildVersion: 15
|
|
44
|
-
* })
|
|
45
|
-
* ```
|
|
46
|
-
* @example
|
|
47
|
-
* // With options
|
|
48
|
-
* ```js
|
|
49
|
-
* replacePlugin({
|
|
50
|
-
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
51
|
-
* __buildDate__: () => JSON.stringify(new Date()),
|
|
52
|
-
* __buildVersion: 15
|
|
53
|
-
* }, {
|
|
54
|
-
* preventAssignment: false,
|
|
55
|
-
* })
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
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
|
-
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
86
|
-
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
87
|
-
type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
88
|
-
include?: TransformPattern
|
|
89
|
-
exclude?: TransformPattern
|
|
90
|
-
jsxRefreshInclude?: TransformPattern
|
|
91
|
-
jsxRefreshExclude?: TransformPattern
|
|
92
|
-
};
|
|
93
|
-
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
|
-
|
|
95
|
-
//#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 };
|
package/dist/filter-index.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
2
|
-
|
|
3
|
-
//#region src/plugin/with-filter.ts
|
|
4
|
-
function withFilterImpl(pluginOption, filterObjectList) {
|
|
5
|
-
if (require_dist.isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
6
|
-
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
7
|
-
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
8
|
-
let plugin = pluginOption;
|
|
9
|
-
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
10
|
-
if (filterObjectIndex === -1) return plugin;
|
|
11
|
-
let filterObject = filterObjectList[filterObjectIndex];
|
|
12
|
-
Object.keys(plugin).forEach((key) => {
|
|
13
|
-
switch (key) {
|
|
14
|
-
case "transform":
|
|
15
|
-
case "resolveId":
|
|
16
|
-
case "load":
|
|
17
|
-
if (!plugin[key]) return;
|
|
18
|
-
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
19
|
-
else plugin[key] = {
|
|
20
|
-
handler: plugin[key],
|
|
21
|
-
filter: filterObject[key]
|
|
22
|
-
};
|
|
23
|
-
break;
|
|
24
|
-
default: break;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return plugin;
|
|
28
|
-
}
|
|
29
|
-
function withFilter(pluginOption, filterObject) {
|
|
30
|
-
return withFilterImpl(pluginOption, require_dist.arraify(filterObject));
|
|
31
|
-
}
|
|
32
|
-
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
33
|
-
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
34
|
-
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
35
|
-
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
36
|
-
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
37
|
-
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
38
|
-
}
|
|
39
|
-
return -1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
exports.and = require_dist.and;
|
|
44
|
-
exports.code = require_dist.code;
|
|
45
|
-
exports.exclude = require_dist.exclude;
|
|
46
|
-
exports.id = require_dist.id;
|
|
47
|
-
exports.include = require_dist.include;
|
|
48
|
-
exports.moduleType = require_dist.moduleType;
|
|
49
|
-
exports.not = require_dist.not;
|
|
50
|
-
exports.or = require_dist.or;
|
|
51
|
-
exports.queries = require_dist.queries;
|
|
52
|
-
exports.query = require_dist.query;
|
|
53
|
-
exports.withFilter = withFilter;
|
package/dist/filter-index.d.cts
DELETED
package/dist/index.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const require_src = require('./shared/src-s89s870G.cjs');
|
|
2
|
-
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
4
|
-
|
|
5
|
-
exports.VERSION = require_src.VERSION;
|
|
6
|
-
exports.build = require_src.build;
|
|
7
|
-
exports.defineConfig = require_src.defineConfig;
|
|
8
|
-
exports.rolldown = require_src.rolldown;
|
|
9
|
-
exports.watch = require_src.watch;
|
package/dist/index.d.cts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
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, 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 } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
|
-
|
|
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 };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-s89s870G.cjs');
|
|
3
|
-
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
5
|
-
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
|
-
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
|
-
|
|
8
|
-
//#region src/parallel-plugin-worker.ts
|
|
9
|
-
const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData;
|
|
10
|
-
(async () => {
|
|
11
|
-
try {
|
|
12
|
-
const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
|
|
13
|
-
const pluginModule = await import(pluginInfo.fileUrl);
|
|
14
|
-
const definePluginImpl = pluginModule.default;
|
|
15
|
-
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
16
|
-
return {
|
|
17
|
-
index: pluginInfo.index,
|
|
18
|
-
plugin: require_src.bindingifyPlugin(plugin, {}, {}, new require_src.PluginContextData(), [], () => {}, "info", false)
|
|
19
|
-
};
|
|
20
|
-
}));
|
|
21
|
-
(0, src_rolldown_binding_wasi_cjs.registerPlugins)(registryId, plugins);
|
|
22
|
-
node_worker_threads.parentPort.postMessage({ type: "success" });
|
|
23
|
-
} catch (error) {
|
|
24
|
-
node_worker_threads.parentPort.postMessage({
|
|
25
|
-
type: "error",
|
|
26
|
-
error
|
|
27
|
-
});
|
|
28
|
-
} finally {
|
|
29
|
-
node_worker_threads.parentPort.unref();
|
|
30
|
-
}
|
|
31
|
-
})();
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/parallel-plugin.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
|
-
type ParallelPluginImplementation = Plugin;
|
|
5
|
-
type Context = {
|
|
6
|
-
/**
|
|
7
|
-
* Thread number
|
|
8
|
-
*/
|
|
9
|
-
threadNumber: number
|
|
10
|
-
};
|
|
11
|
-
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
package/dist/parse-ast-index.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./rolldown-binding.wasi.cjs";
|
|
2
|
-
import { Program } from "@oxc-project/types";
|
|
3
|
-
|
|
4
|
-
//#region src/parse-ast-index.d.ts
|
|
5
|
-
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
6
|
-
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
export { ParseResult, ParserOptions, parseAst, parseAstAsync };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
-
key = keys[i];
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
value: mod,
|
|
23
|
-
enumerable: true
|
|
24
|
-
}) : target, mod));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, '__commonJS', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return __commonJS;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, '__toESM', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return __toESM;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
-
key = keys[i];
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
-
get: ((k) => from[k]).bind(null, key),
|
|
19
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
-
value: mod,
|
|
26
|
-
enumerable: true
|
|
27
|
-
}) : target, mod));
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { __commonJS, __esm, __toESM };
|