@rolldown/browser 1.0.0-beta.8-commit.d95f99e → 1.0.0-beta.8-commit.bf53a10
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 +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +2 -2
- package/dist/experimental-index.cjs +3 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +3 -3
- package/dist/filter-index.cjs +3 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-CItYepRt.d.mts → define-config.d-BmQ1dMSR.d.mts} +37 -7
- package/dist/shared/{define-config.d-D4ayr_B-.d.cts → define-config.d-MId2-BcO.d.cts} +37 -7
- package/dist/shared/{dist-Oaz_A_8i.mjs → dist-CAn6dxW6.mjs} +29 -2
- package/dist/shared/{dist-n1rVcJ5K.cjs → dist-DZQZS3Ua.cjs} +39 -0
- package/dist/shared/{load-config-ZlQ2Epcn.mjs → load-config-BQJgCOWy.mjs} +1 -1
- package/dist/shared/{load-config-Cjq5Zd-j.cjs → load-config-rNkuP0DJ.cjs} +1 -1
- package/dist/shared/{src-DI5J96eO.cjs → src-CyyJ5nAo.cjs} +37 -10
- package/dist/shared/{src-B188GjoC.mjs → src-DbPay3LW.mjs} +32 -11
- package/dist/{src-DIN6_XoW.js → src-7APFYa8r.js} +30 -9
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_dist = require('./shared/dist-
|
|
2
|
+
const require_src = require('./shared/src-CyyJ5nAo.cjs');
|
|
3
|
+
const require_dist = require('./shared/dist-DZQZS3Ua.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-rNkuP0DJ.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"));
|
|
@@ -1065,7 +1065,7 @@ function getSchemaType(schema) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
if ("type" in schema) return schema.type;
|
|
1067
1067
|
if ("const" in schema) return typeof schema.const;
|
|
1068
|
-
return "
|
|
1068
|
+
return "never";
|
|
1069
1069
|
}
|
|
1070
1070
|
function flattenSchema(schema, base = {}, parent = "") {
|
|
1071
1071
|
if (schema === void 0) return base;
|
|
@@ -1145,7 +1145,7 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
1145
1145
|
//#region src/cli/arguments/index.ts
|
|
1146
1146
|
const objectSchema = require_src.getJsonSchema();
|
|
1147
1147
|
const flattenedSchema = flattenSchema(objectSchema.properties);
|
|
1148
|
-
const options = Object.fromEntries(Object.entries(flattenedSchema).map(([key, schema]) => {
|
|
1148
|
+
const options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key, schema]) => getSchemaType(schema) !== "never").map(([key, schema]) => {
|
|
1149
1149
|
const config = Object.getOwnPropertyDescriptor(alias, key)?.value;
|
|
1150
1150
|
const type = getSchemaType(schema);
|
|
1151
1151
|
const result = {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import { arraify, init_misc } from "./shared/dist-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DbPay3LW.mjs";
|
|
3
|
+
import { arraify, init_misc } from "./shared/dist-CAn6dxW6.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-BQJgCOWy.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -1062,7 +1062,7 @@ function getSchemaType(schema) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
if ("type" in schema) return schema.type;
|
|
1064
1064
|
if ("const" in schema) return typeof schema.const;
|
|
1065
|
-
return "
|
|
1065
|
+
return "never";
|
|
1066
1066
|
}
|
|
1067
1067
|
function flattenSchema(schema, base = {}, parent = "") {
|
|
1068
1068
|
if (schema === void 0) return base;
|
|
@@ -1235,7 +1235,7 @@ var init_arguments = __esm({ "src/cli/arguments/index.ts"() {
|
|
|
1235
1235
|
init_utils();
|
|
1236
1236
|
objectSchema = getJsonSchema();
|
|
1237
1237
|
flattenedSchema = flattenSchema(objectSchema.properties);
|
|
1238
|
-
options = Object.fromEntries(Object.entries(flattenedSchema).map(([key, schema]) => {
|
|
1238
|
+
options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key, schema]) => getSchemaType(schema) !== "never").map(([key, schema]) => {
|
|
1239
1239
|
const config = Object.getOwnPropertyDescriptor(alias, key)?.value;
|
|
1240
1240
|
const type = getSchemaType(schema);
|
|
1241
1241
|
const result = {
|
package/dist/config.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/dist-
|
|
2
|
+
const require_src = require('./shared/src-CyyJ5nAo.cjs');
|
|
3
|
+
require('./shared/dist-DZQZS3Ua.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-rNkuP0DJ.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/config.ts
|
|
8
8
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-MId2-BcO.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-BmQ1dMSR.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, init_define_config, version } from "./shared/src-
|
|
2
|
-
import "./shared/dist-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-DbPay3LW.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-BQJgCOWy.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-7APFYa8r.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -73,4 +73,4 @@ function transformPlugin(config) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
//#endregion
|
|
76
|
-
export { ResolverFactory, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
76
|
+
export { ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
4
|
-
require('./shared/dist-
|
|
3
|
+
const require_src = require('./shared/src-CyyJ5nAo.cjs');
|
|
4
|
+
require('./shared/dist-DZQZS3Ua.cjs');
|
|
5
5
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
6
6
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
7
7
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -90,6 +90,7 @@ Object.defineProperty(exports, 'ResolverFactory', {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
exports.aliasPlugin = aliasPlugin;
|
|
93
|
+
exports.assetPlugin = require_src.assetPlugin;
|
|
93
94
|
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
|
|
94
95
|
exports.composePlugins = require_src.composeJsPlugins;
|
|
95
96
|
exports.defineParallelPlugin = defineParallelPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-MId2-BcO.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -93,4 +93,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
93
93
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
94
|
|
|
95
95
|
//#endregion
|
|
96
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
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, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-BmQ1dMSR.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -93,4 +93,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
93
93
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
94
94
|
|
|
95
95
|
//#endregion
|
|
96
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
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, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/dist-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-DbPay3LW.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -92,4 +92,4 @@ init_compose_js_plugins();
|
|
|
92
92
|
init_constructors();
|
|
93
93
|
|
|
94
94
|
//#endregion
|
|
95
|
-
export { ResolverFactory, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
95
|
+
export { ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
package/dist/filter-index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_dist = require('./shared/dist-
|
|
2
|
+
const require_dist = require('./shared/dist-DZQZS3Ua.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
|
5
5
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -49,4 +49,6 @@ exports.include = require_dist.include;
|
|
|
49
49
|
exports.moduleType = require_dist.moduleType;
|
|
50
50
|
exports.not = require_dist.not;
|
|
51
51
|
exports.or = require_dist.or;
|
|
52
|
+
exports.queries = require_dist.queries;
|
|
53
|
+
exports.query = require_dist.query;
|
|
52
54
|
exports.withFilter = withFilter;
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-MId2-BcO.cjs";
|
|
2
2
|
|
|
3
|
-
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
|
3
|
+
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-BmQ1dMSR.mjs";
|
|
2
2
|
|
|
3
|
-
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
|
3
|
+
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isPromiseLike, moduleType$1 as moduleType, not$1 as not, or$1 as or } from "./shared/dist-
|
|
1
|
+
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isPromiseLike, moduleType$1 as moduleType, not$1 as not, or$1 as or, queries$1 as queries, query$1 as query } from "./shared/dist-CAn6dxW6.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/with-filter.ts
|
|
4
4
|
init_misc();
|
|
@@ -45,4 +45,4 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
45
45
|
init_dist();
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
|
48
|
+
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/dist-
|
|
1
|
+
const require_src = require('./shared/src-CyyJ5nAo.cjs');
|
|
2
|
+
require('./shared/dist-DZQZS3Ua.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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-MId2-BcO.cjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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 { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-BmQ1dMSR.mjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, 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
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/dist-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-DbPay3LW.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/dist-
|
|
2
|
+
const require_src = require('./shared/src-CyyJ5nAo.cjs');
|
|
3
|
+
require('./shared/dist-DZQZS3Ua.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import "./shared/dist-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DbPay3LW.mjs";
|
|
3
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -276,14 +276,15 @@ interface OutputOptions {
|
|
|
276
276
|
* Control comments in the output.
|
|
277
277
|
*
|
|
278
278
|
* - `none`: no comments
|
|
279
|
-
* - `
|
|
279
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
legalComments?: "none" | "inline";
|
|
282
282
|
plugins?: RolldownOutputPluginOption;
|
|
283
283
|
polyfillRequire?: boolean;
|
|
284
284
|
target?: ESTarget;
|
|
285
285
|
hoistTransitiveImports?: false;
|
|
286
286
|
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
//#endregion
|
|
@@ -318,7 +319,7 @@ declare class RolldownBuild {
|
|
|
318
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
//#endregion
|
|
@@ -418,17 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
418
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
421
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
422
423
|
polyfillRequire: boolean;
|
|
423
424
|
plugins: RolldownPlugin[];
|
|
424
425
|
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
//#endregion
|
|
428
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
429
431
|
type StringOrRegExp = string | RegExp;
|
|
430
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
431
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
432
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
433
435
|
declare class And {
|
|
434
436
|
kind: "and";
|
|
@@ -445,6 +447,9 @@ declare class Not {
|
|
|
445
447
|
expr: FilterExpression;
|
|
446
448
|
constructor(expr: FilterExpression);
|
|
447
449
|
}
|
|
450
|
+
interface QueryFilterObject {
|
|
451
|
+
[key: string]: StringOrRegExp | boolean;
|
|
452
|
+
}
|
|
448
453
|
interface IdParams {
|
|
449
454
|
cleanUrl?: boolean;
|
|
450
455
|
}
|
|
@@ -464,6 +469,12 @@ declare class Code {
|
|
|
464
469
|
pattern: StringOrRegExp;
|
|
465
470
|
constructor(expr: StringOrRegExp);
|
|
466
471
|
}
|
|
472
|
+
declare class Query {
|
|
473
|
+
kind: "query";
|
|
474
|
+
key: string;
|
|
475
|
+
pattern: StringOrRegExp | boolean;
|
|
476
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
477
|
+
}
|
|
467
478
|
declare class Include {
|
|
468
479
|
kind: "include";
|
|
469
480
|
expr: FilterExpression;
|
|
@@ -480,8 +491,26 @@ declare function not(expr: FilterExpression): Not;
|
|
|
480
491
|
declare function id(pattern: StringOrRegExp, params?: IdParams): Id;
|
|
481
492
|
declare function moduleType(pattern: PluginModuleType): ModuleType$1;
|
|
482
493
|
declare function code(pattern: StringOrRegExp): Code;
|
|
494
|
+
declare function query(key: string, pattern: StringOrRegExp | boolean): Query;
|
|
483
495
|
declare function include(expr: FilterExpression): Include;
|
|
484
496
|
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
497
|
+
/**
|
|
498
|
+
* convert a queryObject to FilterExpression like
|
|
499
|
+
* ```js
|
|
500
|
+
* and(query(k1, v1), query(k2, v2))
|
|
501
|
+
* ```
|
|
502
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
503
|
+
* @returns a `And` FilterExpression
|
|
504
|
+
*/
|
|
505
|
+
/**
|
|
506
|
+
* convert a queryObject to FilterExpression like
|
|
507
|
+
* ```js
|
|
508
|
+
* and(query(k1, v1), query(k2, v2))
|
|
509
|
+
* ```
|
|
510
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
511
|
+
* @returns a `And` FilterExpression
|
|
512
|
+
*/
|
|
513
|
+
declare function queries(queryFilter: QueryFilterObject): And;
|
|
485
514
|
|
|
486
515
|
//#endregion
|
|
487
516
|
//#region src/plugin/hook-filter.d.ts
|
|
@@ -689,6 +718,7 @@ type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, "r
|
|
|
689
718
|
};
|
|
690
719
|
declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
|
691
720
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
721
|
+
declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
|
|
692
722
|
|
|
693
723
|
//#endregion
|
|
694
724
|
//#region src/constants/plugin.d.ts
|
|
@@ -1136,4 +1166,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1136
1166
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1137
1167
|
|
|
1138
1168
|
//#endregion
|
|
1139
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin as BuiltinPlugin$1, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk$1 as PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION as VERSION$1, WarningHandlerWithDefault, WatchOptions, WatcherOptions, and, build as build$1, buildImportAnalysisPlugin as buildImportAnalysisPlugin$1, code, defineConfig as defineConfig$1, defineParallelPlugin, dynamicImportVarsPlugin as dynamicImportVarsPlugin$1, exclude, id, importGlobPlugin as importGlobPlugin$1, include, isolatedDeclarationPlugin as isolatedDeclarationPlugin$1, jsonPlugin as jsonPlugin$1, loadFallbackPlugin as loadFallbackPlugin$1, manifestPlugin as manifestPlugin$1, moduleFederationPlugin as moduleFederationPlugin$1, modulePreloadPolyfillPlugin as modulePreloadPolyfillPlugin$1, moduleType, not, or, reportPlugin as reportPlugin$1, rolldown as rolldown$1, viteResolvePlugin as viteResolvePlugin$1, wasmFallbackPlugin as wasmFallbackPlugin$1, wasmHelperPlugin as wasmHelperPlugin$1, watch as watch$1, withFilter };
|
|
1169
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin as BuiltinPlugin$1, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk$1 as PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION as VERSION$1, WarningHandlerWithDefault, WatchOptions, WatcherOptions, and, assetPlugin as assetPlugin$1, build as build$1, buildImportAnalysisPlugin as buildImportAnalysisPlugin$1, code, defineConfig as defineConfig$1, defineParallelPlugin, dynamicImportVarsPlugin as dynamicImportVarsPlugin$1, exclude, id, importGlobPlugin as importGlobPlugin$1, include, isolatedDeclarationPlugin as isolatedDeclarationPlugin$1, jsonPlugin as jsonPlugin$1, loadFallbackPlugin as loadFallbackPlugin$1, manifestPlugin as manifestPlugin$1, moduleFederationPlugin as moduleFederationPlugin$1, modulePreloadPolyfillPlugin as modulePreloadPolyfillPlugin$1, moduleType, not, or, queries, query, reportPlugin as reportPlugin$1, rolldown as rolldown$1, viteResolvePlugin as viteResolvePlugin$1, wasmFallbackPlugin as wasmFallbackPlugin$1, wasmHelperPlugin as wasmHelperPlugin$1, watch as watch$1, withFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -276,14 +276,15 @@ interface OutputOptions {
|
|
|
276
276
|
* Control comments in the output.
|
|
277
277
|
*
|
|
278
278
|
* - `none`: no comments
|
|
279
|
-
* - `
|
|
279
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
legalComments?: "none" | "inline";
|
|
282
282
|
plugins?: RolldownOutputPluginOption;
|
|
283
283
|
polyfillRequire?: boolean;
|
|
284
284
|
target?: ESTarget;
|
|
285
285
|
hoistTransitiveImports?: false;
|
|
286
286
|
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
//#endregion
|
|
@@ -318,7 +319,7 @@ declare class RolldownBuild {
|
|
|
318
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
//#endregion
|
|
@@ -418,17 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
418
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
421
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
422
423
|
polyfillRequire: boolean;
|
|
423
424
|
plugins: RolldownPlugin[];
|
|
424
425
|
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
//#endregion
|
|
428
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
429
431
|
type StringOrRegExp = string | RegExp;
|
|
430
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
431
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
432
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
433
435
|
declare class And {
|
|
434
436
|
kind: "and";
|
|
@@ -445,6 +447,9 @@ declare class Not {
|
|
|
445
447
|
expr: FilterExpression;
|
|
446
448
|
constructor(expr: FilterExpression);
|
|
447
449
|
}
|
|
450
|
+
interface QueryFilterObject {
|
|
451
|
+
[key: string]: StringOrRegExp | boolean;
|
|
452
|
+
}
|
|
448
453
|
interface IdParams {
|
|
449
454
|
cleanUrl?: boolean;
|
|
450
455
|
}
|
|
@@ -464,6 +469,12 @@ declare class Code {
|
|
|
464
469
|
pattern: StringOrRegExp;
|
|
465
470
|
constructor(expr: StringOrRegExp);
|
|
466
471
|
}
|
|
472
|
+
declare class Query {
|
|
473
|
+
kind: "query";
|
|
474
|
+
key: string;
|
|
475
|
+
pattern: StringOrRegExp | boolean;
|
|
476
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
477
|
+
}
|
|
467
478
|
declare class Include {
|
|
468
479
|
kind: "include";
|
|
469
480
|
expr: FilterExpression;
|
|
@@ -480,8 +491,26 @@ declare function not(expr: FilterExpression): Not;
|
|
|
480
491
|
declare function id(pattern: StringOrRegExp, params?: IdParams): Id;
|
|
481
492
|
declare function moduleType(pattern: PluginModuleType): ModuleType$1;
|
|
482
493
|
declare function code(pattern: StringOrRegExp): Code;
|
|
494
|
+
declare function query(key: string, pattern: StringOrRegExp | boolean): Query;
|
|
483
495
|
declare function include(expr: FilterExpression): Include;
|
|
484
496
|
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
497
|
+
/**
|
|
498
|
+
* convert a queryObject to FilterExpression like
|
|
499
|
+
* ```js
|
|
500
|
+
* and(query(k1, v1), query(k2, v2))
|
|
501
|
+
* ```
|
|
502
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
503
|
+
* @returns a `And` FilterExpression
|
|
504
|
+
*/
|
|
505
|
+
/**
|
|
506
|
+
* convert a queryObject to FilterExpression like
|
|
507
|
+
* ```js
|
|
508
|
+
* and(query(k1, v1), query(k2, v2))
|
|
509
|
+
* ```
|
|
510
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
511
|
+
* @returns a `And` FilterExpression
|
|
512
|
+
*/
|
|
513
|
+
declare function queries(queryFilter: QueryFilterObject): And;
|
|
485
514
|
|
|
486
515
|
//#endregion
|
|
487
516
|
//#region src/plugin/hook-filter.d.ts
|
|
@@ -689,6 +718,7 @@ type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, "r
|
|
|
689
718
|
};
|
|
690
719
|
declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
|
|
691
720
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
721
|
+
declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
|
|
692
722
|
|
|
693
723
|
//#endregion
|
|
694
724
|
//#region src/constants/plugin.d.ts
|
|
@@ -1136,4 +1166,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1136
1166
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1137
1167
|
|
|
1138
1168
|
//#endregion
|
|
1139
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk$1 as 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, and, build, buildImportAnalysisPlugin, code, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, exclude, id, importGlobPlugin, include, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleType, not, or, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, withFilter };
|
|
1169
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk$1 as 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, and, assetPlugin, build, buildImportAnalysisPlugin, code, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, exclude, id, importGlobPlugin, include, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleType, not, or, queries, query, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, withFilter };
|
|
@@ -44,13 +44,30 @@ function moduleType(pattern) {
|
|
|
44
44
|
function code(pattern) {
|
|
45
45
|
return new Code(pattern);
|
|
46
46
|
}
|
|
47
|
+
function query(key, pattern) {
|
|
48
|
+
return new Query(key, pattern);
|
|
49
|
+
}
|
|
47
50
|
function include(expr) {
|
|
48
51
|
return new Include(expr);
|
|
49
52
|
}
|
|
50
53
|
function exclude(expr) {
|
|
51
54
|
return new Exclude(expr);
|
|
52
55
|
}
|
|
53
|
-
|
|
56
|
+
/**
|
|
57
|
+
* convert a queryObject to FilterExpression like
|
|
58
|
+
* ```js
|
|
59
|
+
* and(query(k1, v1), query(k2, v2))
|
|
60
|
+
* ```
|
|
61
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
62
|
+
* @returns a `And` FilterExpression
|
|
63
|
+
*/
|
|
64
|
+
function queries(queryFilter) {
|
|
65
|
+
let arr = Object.entries(queryFilter).map(([key, value]) => {
|
|
66
|
+
return new Query(key, value);
|
|
67
|
+
});
|
|
68
|
+
return and(...arr);
|
|
69
|
+
}
|
|
70
|
+
var And, Or, Not, Id, ModuleType, Code, Query, Include, Exclude;
|
|
54
71
|
var init_dist = __esm({ "../pluginutils/dist/index.js"() {
|
|
55
72
|
And = class {
|
|
56
73
|
kind;
|
|
@@ -104,6 +121,16 @@ var init_dist = __esm({ "../pluginutils/dist/index.js"() {
|
|
|
104
121
|
this.kind = "code";
|
|
105
122
|
}
|
|
106
123
|
};
|
|
124
|
+
Query = class {
|
|
125
|
+
kind;
|
|
126
|
+
key;
|
|
127
|
+
pattern;
|
|
128
|
+
constructor(key, pattern) {
|
|
129
|
+
this.pattern = pattern;
|
|
130
|
+
this.key = key;
|
|
131
|
+
this.kind = "query";
|
|
132
|
+
}
|
|
133
|
+
};
|
|
107
134
|
Include = class {
|
|
108
135
|
kind;
|
|
109
136
|
expr;
|
|
@@ -123,4 +150,4 @@ var init_dist = __esm({ "../pluginutils/dist/index.js"() {
|
|
|
123
150
|
} });
|
|
124
151
|
|
|
125
152
|
//#endregion
|
|
126
|
-
export { and as and$1, arraify, code as code$1, exclude as exclude$1, id as id$1, include as include$1, init_dist, init_misc, isNullish, isPromiseLike, moduleType as moduleType$1, noop, not as not$1, or as or$1, unimplemented, unreachable, unsupported };
|
|
153
|
+
export { and as and$1, arraify, code as code$1, exclude as exclude$1, id as id$1, include as include$1, init_dist, init_misc, isNullish, isPromiseLike, moduleType as moduleType$1, noop, not as not$1, or as or$1, queries as queries$1, query as query$1, unimplemented, unreachable, unsupported };
|
|
@@ -77,6 +77,16 @@ var Code = class {
|
|
|
77
77
|
this.kind = "code";
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
+
var Query = class {
|
|
81
|
+
kind;
|
|
82
|
+
key;
|
|
83
|
+
pattern;
|
|
84
|
+
constructor(key, pattern) {
|
|
85
|
+
this.pattern = pattern;
|
|
86
|
+
this.key = key;
|
|
87
|
+
this.kind = "query";
|
|
88
|
+
}
|
|
89
|
+
};
|
|
80
90
|
var Include = class {
|
|
81
91
|
kind;
|
|
82
92
|
expr;
|
|
@@ -111,12 +121,29 @@ function moduleType(pattern) {
|
|
|
111
121
|
function code(pattern) {
|
|
112
122
|
return new Code(pattern);
|
|
113
123
|
}
|
|
124
|
+
function query(key, pattern) {
|
|
125
|
+
return new Query(key, pattern);
|
|
126
|
+
}
|
|
114
127
|
function include(expr) {
|
|
115
128
|
return new Include(expr);
|
|
116
129
|
}
|
|
117
130
|
function exclude(expr) {
|
|
118
131
|
return new Exclude(expr);
|
|
119
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* convert a queryObject to FilterExpression like
|
|
135
|
+
* ```js
|
|
136
|
+
* and(query(k1, v1), query(k2, v2))
|
|
137
|
+
* ```
|
|
138
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
139
|
+
* @returns a `And` FilterExpression
|
|
140
|
+
*/
|
|
141
|
+
function queries(queryFilter) {
|
|
142
|
+
let arr = Object.entries(queryFilter).map(([key, value]) => {
|
|
143
|
+
return new Query(key, value);
|
|
144
|
+
});
|
|
145
|
+
return and(...arr);
|
|
146
|
+
}
|
|
120
147
|
|
|
121
148
|
//#endregion
|
|
122
149
|
Object.defineProperty(exports, 'and', {
|
|
@@ -191,6 +218,18 @@ Object.defineProperty(exports, 'or', {
|
|
|
191
218
|
return or;
|
|
192
219
|
}
|
|
193
220
|
});
|
|
221
|
+
Object.defineProperty(exports, 'queries', {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () {
|
|
224
|
+
return queries;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(exports, 'query', {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () {
|
|
230
|
+
return query;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
194
233
|
Object.defineProperty(exports, 'unimplemented', {
|
|
195
234
|
enumerable: true,
|
|
196
235
|
get: function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-DbPay3LW.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./src-
|
|
3
|
+
const require_src = require('./src-CyyJ5nAo.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_dist = require('./dist-
|
|
3
|
+
const require_dist = require('./dist-DZQZS3Ua.cjs');
|
|
4
4
|
const require_parse_ast_index = require('./parse-ast-index-DfDBeJFi.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.8-commit.
|
|
12
|
+
var version = "1.0.0-beta.8-commit.bf53a10";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -95,6 +95,9 @@ function moduleFederationPlugin(config) {
|
|
|
95
95
|
function isolatedDeclarationPlugin(config) {
|
|
96
96
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
97
97
|
}
|
|
98
|
+
function assetPlugin(config) {
|
|
99
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
100
|
+
}
|
|
98
101
|
|
|
99
102
|
//#endregion
|
|
100
103
|
//#region src/log/logging.ts
|
|
@@ -1991,8 +1994,9 @@ const OutputOptionsSchema = strictObject({
|
|
|
1991
1994
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
1992
1995
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1993
1996
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1997
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
1994
1998
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1995
|
-
|
|
1999
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1996
2000
|
plugins: optional(custom(() => true)),
|
|
1997
2001
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1998
2002
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -2000,7 +2004,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
2000
2004
|
if (input) return false;
|
|
2001
2005
|
return true;
|
|
2002
2006
|
}, () => `The 'true' value is not supported`)),
|
|
2003
|
-
preserveModules: optional(boolean())
|
|
2007
|
+
preserveModules: optional(boolean()),
|
|
2008
|
+
virtualDirname: optional(string())
|
|
2004
2009
|
});
|
|
2005
2010
|
const getAddonDescription = (placement, wrapper) => {
|
|
2006
2011
|
return `Code to insert the ${ansis.default.bold(placement)} of the bundled file (${ansis.default.bold(wrapper)} the wrapper function)`;
|
|
@@ -2079,7 +2084,7 @@ function getOutputCliKeys() {
|
|
|
2079
2084
|
return keyof(OutputCliOptionsSchema).options;
|
|
2080
2085
|
}
|
|
2081
2086
|
function getJsonSchema() {
|
|
2082
|
-
return toJsonSchema(CliOptionsSchema);
|
|
2087
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
2083
2088
|
}
|
|
2084
2089
|
|
|
2085
2090
|
//#endregion
|
|
@@ -2369,6 +2374,17 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2369
2374
|
list.push({ kind: "Exclude" });
|
|
2370
2375
|
break;
|
|
2371
2376
|
}
|
|
2377
|
+
case "query": {
|
|
2378
|
+
list.push({
|
|
2379
|
+
kind: "QueryKey",
|
|
2380
|
+
payload: expr.key
|
|
2381
|
+
});
|
|
2382
|
+
list.push({
|
|
2383
|
+
kind: "QueryValue",
|
|
2384
|
+
payload: expr.pattern
|
|
2385
|
+
});
|
|
2386
|
+
break;
|
|
2387
|
+
}
|
|
2372
2388
|
default: throw new Error(`Unknown filter expression: ${expr}`);
|
|
2373
2389
|
}
|
|
2374
2390
|
}
|
|
@@ -2773,7 +2789,7 @@ function transformChunkModules(modules) {
|
|
|
2773
2789
|
//#endregion
|
|
2774
2790
|
//#region src/utils/bindingify-output-options.ts
|
|
2775
2791
|
function bindingifyOutputOptions(outputOptions) {
|
|
2776
|
-
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules } = outputOptions;
|
|
2792
|
+
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
2777
2793
|
return {
|
|
2778
2794
|
dir,
|
|
2779
2795
|
file: file == null ? void 0 : file,
|
|
@@ -2805,7 +2821,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2805
2821
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2806
2822
|
target: outputOptions.target,
|
|
2807
2823
|
sanitizeFileName,
|
|
2808
|
-
preserveModules
|
|
2824
|
+
preserveModules,
|
|
2825
|
+
virtualDirname,
|
|
2826
|
+
legalComments
|
|
2809
2827
|
};
|
|
2810
2828
|
}
|
|
2811
2829
|
function bindingifyAddon(configAddon) {
|
|
@@ -2939,8 +2957,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2939
2957
|
get minify() {
|
|
2940
2958
|
return this.inner.minify;
|
|
2941
2959
|
}
|
|
2942
|
-
get
|
|
2943
|
-
return this.inner.
|
|
2960
|
+
get legalComments() {
|
|
2961
|
+
return this.inner.legalComments;
|
|
2944
2962
|
}
|
|
2945
2963
|
get polyfillRequire() {
|
|
2946
2964
|
return this.inner.polyfillRequire;
|
|
@@ -2951,6 +2969,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2951
2969
|
get preserveModules() {
|
|
2952
2970
|
return this.preserveModules;
|
|
2953
2971
|
}
|
|
2972
|
+
get virtualDirname() {
|
|
2973
|
+
return this.virtualDirname;
|
|
2974
|
+
}
|
|
2954
2975
|
};
|
|
2955
2976
|
function normalizeAddon(value) {
|
|
2956
2977
|
if (typeof value === "function") return value;
|
|
@@ -4212,7 +4233,7 @@ var RolldownBuild = class {
|
|
|
4212
4233
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4213
4234
|
}
|
|
4214
4235
|
get watchFiles() {
|
|
4215
|
-
return this.#bundler?.bundler.
|
|
4236
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4216
4237
|
}
|
|
4217
4238
|
};
|
|
4218
4239
|
|
|
@@ -4402,6 +4423,12 @@ Object.defineProperty(exports, 'VERSION', {
|
|
|
4402
4423
|
return VERSION;
|
|
4403
4424
|
}
|
|
4404
4425
|
});
|
|
4426
|
+
Object.defineProperty(exports, 'assetPlugin', {
|
|
4427
|
+
enumerable: true,
|
|
4428
|
+
get: function () {
|
|
4429
|
+
return assetPlugin;
|
|
4430
|
+
}
|
|
4431
|
+
});
|
|
4405
4432
|
Object.defineProperty(exports, 'bindingifyPlugin', {
|
|
4406
4433
|
enumerable: true,
|
|
4407
4434
|
get: function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isNullish, moduleType$1 as moduleType, noop, or$1 as or, unimplemented, unreachable, unsupported } from "./dist-
|
|
2
|
+
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isNullish, moduleType$1 as moduleType, noop, or$1 as or, unimplemented, unreachable, unsupported } from "./dist-CAn6dxW6.mjs";
|
|
3
3
|
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DvsltErM.mjs";
|
|
4
4
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -8,7 +8,7 @@ import { availableParallelism } from "node:os";
|
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.8-commit.
|
|
11
|
+
var version = "1.0.0-beta.8-commit.bf53a10";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -89,6 +89,9 @@ function moduleFederationPlugin(config) {
|
|
|
89
89
|
function isolatedDeclarationPlugin(config) {
|
|
90
90
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
91
91
|
}
|
|
92
|
+
function assetPlugin(config) {
|
|
93
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
94
|
+
}
|
|
92
95
|
var BuiltinPlugin;
|
|
93
96
|
var init_constructors = __esm({ "src/builtin-plugin/constructors.ts"() {
|
|
94
97
|
init_utils();
|
|
@@ -1778,7 +1781,7 @@ function getOutputCliKeys() {
|
|
|
1778
1781
|
return keyof(OutputCliOptionsSchema).options;
|
|
1779
1782
|
}
|
|
1780
1783
|
function getJsonSchema() {
|
|
1781
|
-
return toJsonSchema(CliOptionsSchema);
|
|
1784
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
1782
1785
|
}
|
|
1783
1786
|
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ESTargetSchema, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
|
|
1784
1787
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
@@ -2078,8 +2081,9 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2078
2081
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2079
2082
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2080
2083
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2084
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
2081
2085
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2082
|
-
|
|
2086
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2083
2087
|
plugins: optional(custom(() => true)),
|
|
2084
2088
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2085
2089
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -2087,7 +2091,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2087
2091
|
if (input) return false;
|
|
2088
2092
|
return true;
|
|
2089
2093
|
}, () => `The 'true' value is not supported`)),
|
|
2090
|
-
preserveModules: optional(boolean())
|
|
2094
|
+
preserveModules: optional(boolean()),
|
|
2095
|
+
virtualDirname: optional(string())
|
|
2091
2096
|
});
|
|
2092
2097
|
getAddonDescription = (placement, wrapper) => {
|
|
2093
2098
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -3600,6 +3605,17 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
3600
3605
|
list.push({ kind: "Exclude" });
|
|
3601
3606
|
break;
|
|
3602
3607
|
}
|
|
3608
|
+
case "query": {
|
|
3609
|
+
list.push({
|
|
3610
|
+
kind: "QueryKey",
|
|
3611
|
+
payload: expr.key
|
|
3612
|
+
});
|
|
3613
|
+
list.push({
|
|
3614
|
+
kind: "QueryValue",
|
|
3615
|
+
payload: expr.pattern
|
|
3616
|
+
});
|
|
3617
|
+
break;
|
|
3618
|
+
}
|
|
3603
3619
|
default: throw new Error(`Unknown filter expression: ${expr}`);
|
|
3604
3620
|
}
|
|
3605
3621
|
}
|
|
@@ -4045,7 +4061,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
4045
4061
|
//#endregion
|
|
4046
4062
|
//#region src/utils/bindingify-output-options.ts
|
|
4047
4063
|
function bindingifyOutputOptions(outputOptions) {
|
|
4048
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules } = outputOptions;
|
|
4064
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
4049
4065
|
return {
|
|
4050
4066
|
dir,
|
|
4051
4067
|
file: file == null ? void 0 : file,
|
|
@@ -4077,7 +4093,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4077
4093
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4078
4094
|
target: outputOptions.target,
|
|
4079
4095
|
sanitizeFileName,
|
|
4080
|
-
preserveModules
|
|
4096
|
+
preserveModules,
|
|
4097
|
+
virtualDirname,
|
|
4098
|
+
legalComments
|
|
4081
4099
|
};
|
|
4082
4100
|
}
|
|
4083
4101
|
function bindingifyAddon(configAddon) {
|
|
@@ -4223,8 +4241,8 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4223
4241
|
get minify() {
|
|
4224
4242
|
return this.inner.minify;
|
|
4225
4243
|
}
|
|
4226
|
-
get
|
|
4227
|
-
return this.inner.
|
|
4244
|
+
get legalComments() {
|
|
4245
|
+
return this.inner.legalComments;
|
|
4228
4246
|
}
|
|
4229
4247
|
get polyfillRequire() {
|
|
4230
4248
|
return this.inner.polyfillRequire;
|
|
@@ -4235,6 +4253,9 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4235
4253
|
get preserveModules() {
|
|
4236
4254
|
return this.preserveModules;
|
|
4237
4255
|
}
|
|
4256
|
+
get virtualDirname() {
|
|
4257
|
+
return this.virtualDirname;
|
|
4258
|
+
}
|
|
4238
4259
|
};
|
|
4239
4260
|
} });
|
|
4240
4261
|
|
|
@@ -5573,7 +5594,7 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
5573
5594
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
5574
5595
|
}
|
|
5575
5596
|
get watchFiles() {
|
|
5576
|
-
return this.#bundler?.bundler.
|
|
5597
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
5577
5598
|
}
|
|
5578
5599
|
};
|
|
5579
5600
|
} });
|
|
@@ -5780,4 +5801,4 @@ var init_src = __esm({ "src/index.ts"() {
|
|
|
5780
5801
|
} });
|
|
5781
5802
|
|
|
5782
5803
|
//#endregion
|
|
5783
|
-
export { BuiltinPlugin, PluginContextData, VERSION, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_define_config, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch };
|
|
5804
|
+
export { BuiltinPlugin, PluginContextData, VERSION, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_define_config, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch };
|
|
@@ -3,7 +3,7 @@ import path from "pathe";
|
|
|
3
3
|
import colors from "ansis";
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "1.0.0-beta.8-commit.
|
|
6
|
+
var version = "1.0.0-beta.8-commit.bf53a10";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -88,6 +88,9 @@ function moduleFederationPlugin(config) {
|
|
|
88
88
|
function isolatedDeclarationPlugin(config) {
|
|
89
89
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
90
90
|
}
|
|
91
|
+
function assetPlugin(config) {
|
|
92
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
93
|
+
}
|
|
91
94
|
|
|
92
95
|
//#endregion
|
|
93
96
|
//#region src/utils/misc.ts
|
|
@@ -1846,8 +1849,9 @@ const OutputOptionsSchema = strictObject({
|
|
|
1846
1849
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
1847
1850
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1848
1851
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1852
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
1849
1853
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1850
|
-
|
|
1854
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1851
1855
|
plugins: optional(custom(() => true)),
|
|
1852
1856
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1853
1857
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -1855,7 +1859,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
1855
1859
|
if (input) return false;
|
|
1856
1860
|
return true;
|
|
1857
1861
|
}, () => `The 'true' value is not supported`)),
|
|
1858
|
-
preserveModules: optional(boolean())
|
|
1862
|
+
preserveModules: optional(boolean()),
|
|
1863
|
+
virtualDirname: optional(string())
|
|
1859
1864
|
});
|
|
1860
1865
|
const getAddonDescription = (placement, wrapper) => {
|
|
1861
1866
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -2292,6 +2297,17 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2292
2297
|
list.push({ kind: "Exclude" });
|
|
2293
2298
|
break;
|
|
2294
2299
|
}
|
|
2300
|
+
case "query": {
|
|
2301
|
+
list.push({
|
|
2302
|
+
kind: "QueryKey",
|
|
2303
|
+
payload: expr.key
|
|
2304
|
+
});
|
|
2305
|
+
list.push({
|
|
2306
|
+
kind: "QueryValue",
|
|
2307
|
+
payload: expr.pattern
|
|
2308
|
+
});
|
|
2309
|
+
break;
|
|
2310
|
+
}
|
|
2295
2311
|
default: throw new Error(`Unknown filter expression: ${expr}`);
|
|
2296
2312
|
}
|
|
2297
2313
|
}
|
|
@@ -2767,7 +2783,7 @@ function transformChunkModules(modules) {
|
|
|
2767
2783
|
//#endregion
|
|
2768
2784
|
//#region src/utils/bindingify-output-options.ts
|
|
2769
2785
|
function bindingifyOutputOptions(outputOptions) {
|
|
2770
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules } = outputOptions;
|
|
2786
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
2771
2787
|
return {
|
|
2772
2788
|
dir,
|
|
2773
2789
|
file: file == null ? void 0 : file,
|
|
@@ -2799,7 +2815,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2799
2815
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2800
2816
|
target: outputOptions.target,
|
|
2801
2817
|
sanitizeFileName,
|
|
2802
|
-
preserveModules
|
|
2818
|
+
preserveModules,
|
|
2819
|
+
virtualDirname,
|
|
2820
|
+
legalComments
|
|
2803
2821
|
};
|
|
2804
2822
|
}
|
|
2805
2823
|
function bindingifyAddon(configAddon) {
|
|
@@ -2933,8 +2951,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2933
2951
|
get minify() {
|
|
2934
2952
|
return this.inner.minify;
|
|
2935
2953
|
}
|
|
2936
|
-
get
|
|
2937
|
-
return this.inner.
|
|
2954
|
+
get legalComments() {
|
|
2955
|
+
return this.inner.legalComments;
|
|
2938
2956
|
}
|
|
2939
2957
|
get polyfillRequire() {
|
|
2940
2958
|
return this.inner.polyfillRequire;
|
|
@@ -2945,6 +2963,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2945
2963
|
get preserveModules() {
|
|
2946
2964
|
return this.preserveModules;
|
|
2947
2965
|
}
|
|
2966
|
+
get virtualDirname() {
|
|
2967
|
+
return this.virtualDirname;
|
|
2968
|
+
}
|
|
2948
2969
|
};
|
|
2949
2970
|
function normalizeAddon(value) {
|
|
2950
2971
|
if (typeof value === "function") return value;
|
|
@@ -4154,7 +4175,7 @@ var RolldownBuild = class {
|
|
|
4154
4175
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4155
4176
|
}
|
|
4156
4177
|
get watchFiles() {
|
|
4157
|
-
return this.#bundler?.bundler.
|
|
4178
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4158
4179
|
}
|
|
4159
4180
|
};
|
|
4160
4181
|
|
|
@@ -4326,4 +4347,4 @@ function defineConfig(config) {
|
|
|
4326
4347
|
const VERSION = version;
|
|
4327
4348
|
|
|
4328
4349
|
//#endregion
|
|
4329
|
-
export { BuiltinPlugin, VERSION, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch };
|
|
4350
|
+
export { BuiltinPlugin, VERSION, assetPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.bf53a10",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|