rolldown 1.0.0-beta.56 → 1.0.0-beta.57
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/README.md +11 -0
- package/dist/cli-setup.mjs +1 -1
- package/dist/cli.mjs +8 -8
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +6 -6
- package/dist/experimental-runtime-types.d.ts +1 -1
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +327 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +2 -2
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-CtWITWm-.mjs → binding-Cuiiq-jL.mjs} +26 -26
- package/dist/shared/{bindingify-input-options-CO3Vzzk3.mjs → bindingify-input-options-B8B4dvr-.mjs} +3 -3
- package/dist/shared/{constructors-Dw-B6Be3.d.mts → constructors-BnPlw43Q.d.mts} +1 -1
- package/dist/shared/{constructors-Jt3eRoTg.mjs → constructors-CxTKGwaB.mjs} +1 -1
- package/dist/shared/{define-config-izclUEbx.d.mts → define-config-kYHtCO-M.d.mts} +5 -0
- package/dist/shared/{load-config-BpSXYU8O.mjs → load-config-BvbZUaFt.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-DFzBrq1v.mjs → normalize-string-or-regex-0t36Z7KW.mjs} +2 -2
- package/dist/shared/{parse-ast-index-BQgRrweO.mjs → parse-ast-index-Bcjhsr8U.mjs} +1 -1
- package/dist/shared/{rolldown-DA3tdfJk.mjs → rolldown-CF29fS6Z.mjs} +1 -1
- package/dist/shared/{rolldown-build-CUD1BA8L.mjs → rolldown-build--qygLwCL.mjs} +4 -3
- package/dist/shared/{watch-XY1CZgsw.mjs → watch-CyvuFK7g.mjs} +4 -4
- package/package.json +17 -17
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Rolldown
|
|
2
|
+
|
|
3
|
+
> Fast Rust-based bundler for JavaScript with Rollup-compatible API
|
|
4
|
+
|
|
5
|
+
- ⚡️ Lightning Fast Performance
|
|
6
|
+
- 🔌 Rollup-Compatible APIs
|
|
7
|
+
- ⏩ esbuild Feature Parity
|
|
8
|
+
|
|
9
|
+
Rolldown is primarily designed to serve as the underlying bundler in [Vite](https://vite.dev/), with the goal to replace esbuild and Rollup with one unified build tool. Although designed for Vite, Rolldown is also fully capable of being used as a standalone, general-purpose bundler. It can serve as a drop-in replacement for Rollup in most cases, and can also be used as an esbuild alternative when better chunking control is needed.
|
|
10
|
+
|
|
11
|
+
[Read the Docs to Learn More](https://rolldown.rs).
|
package/dist/cli-setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Cuiiq-jL.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/setup-index.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
1
|
+
import "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CyvuFK7g.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { b as description, x as version } from "./shared/normalize-string-or-regex-
|
|
5
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build
|
|
6
|
-
import "./shared/bindingify-input-options-
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build--qygLwCL.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-B8B4dvr-.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-CF29fS6Z.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-BvbZUaFt.mjs";
|
|
10
10
|
import path, { sep } from "node:path";
|
|
11
11
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
12
12
|
import process$1 from "node:process";
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-
|
|
2
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-kYHtCO-M.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { x as version } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import "./shared/rolldown-build
|
|
4
|
-
import "./shared/bindingify-input-options-
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import "./shared/rolldown-
|
|
1
|
+
import "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { x as version } from "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
3
|
+
import "./shared/rolldown-build--qygLwCL.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-B8B4dvr-.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
6
|
+
import "./shared/rolldown-CF29fS6Z.mjs";
|
|
7
7
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-BvbZUaFt.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/config.ts
|
|
11
11
|
const VERSION = version;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
-
import { A as BuiltinPlugin, At as RolldownOutput, Dt as OutputChunk, F as OutputBundle, G as MinimalPluginContext, Mt as freeExternalMemory, N as SourceMapInput, W as defineParallelPlugin, o as InputOptions, tt as NormalizedOutputOptions, xt as OutputOptions } from "./shared/define-config-
|
|
3
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
2
|
+
import { A as BuiltinPlugin, At as RolldownOutput, Dt as OutputChunk, F as OutputBundle, G as MinimalPluginContext, Mt as freeExternalMemory, N as SourceMapInput, W as defineParallelPlugin, o as InputOptions, tt as NormalizedOutputOptions, xt as OutputOptions } from "./shared/define-config-kYHtCO-M.mjs";
|
|
3
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-BnPlw43Q.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build
|
|
4
|
-
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-
|
|
5
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
6
|
-
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
3
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build--qygLwCL.mjs";
|
|
4
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-B8B4dvr-.mjs";
|
|
5
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
6
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-CxTKGwaB.mjs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
9
9
|
//#region src/api/dev/dev-engine.ts
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
-
import { k as withFilter } from "./shared/define-config-
|
|
3
|
-
|
|
4
|
-
export {
|
|
2
|
+
import { k as withFilter } from "./shared/define-config-kYHtCO-M.mjs";
|
|
3
|
+
export * from "@rolldown/pluginutils/filter";
|
|
4
|
+
export { withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,6 +1,331 @@
|
|
|
1
1
|
import { n as isPromiseLike, t as arraify } from "./shared/misc-DpjTMcQQ.mjs";
|
|
2
|
-
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
2
|
|
|
3
|
+
//#region ../pluginutils/dist/utils.js
|
|
4
|
+
const postfixRE = /[?#].*$/;
|
|
5
|
+
function cleanUrl(url) {
|
|
6
|
+
return url.replace(postfixRE, "");
|
|
7
|
+
}
|
|
8
|
+
function extractQueryWithoutFragment(url) {
|
|
9
|
+
const questionMarkIndex = url.indexOf("?");
|
|
10
|
+
if (questionMarkIndex === -1) return "";
|
|
11
|
+
const fragmentIndex = url.indexOf("#", questionMarkIndex);
|
|
12
|
+
if (fragmentIndex === -1) return url.substring(questionMarkIndex);
|
|
13
|
+
else return url.substring(questionMarkIndex, fragmentIndex);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../pluginutils/dist/filter/composable-filters.js
|
|
18
|
+
var And = class {
|
|
19
|
+
kind;
|
|
20
|
+
args;
|
|
21
|
+
constructor(...args) {
|
|
22
|
+
if (args.length === 0) throw new Error("`And` expects at least one operand");
|
|
23
|
+
this.args = args;
|
|
24
|
+
this.kind = "and";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var Or = class {
|
|
28
|
+
kind;
|
|
29
|
+
args;
|
|
30
|
+
constructor(...args) {
|
|
31
|
+
if (args.length === 0) throw new Error("`Or` expects at least one operand");
|
|
32
|
+
this.args = args;
|
|
33
|
+
this.kind = "or";
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var Not = class {
|
|
37
|
+
kind;
|
|
38
|
+
expr;
|
|
39
|
+
constructor(expr) {
|
|
40
|
+
this.expr = expr;
|
|
41
|
+
this.kind = "not";
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var Id = class {
|
|
45
|
+
kind;
|
|
46
|
+
pattern;
|
|
47
|
+
params;
|
|
48
|
+
constructor(pattern, params) {
|
|
49
|
+
this.pattern = pattern;
|
|
50
|
+
this.kind = "id";
|
|
51
|
+
this.params = params ?? { cleanUrl: false };
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var ImporterId = class {
|
|
55
|
+
kind;
|
|
56
|
+
pattern;
|
|
57
|
+
params;
|
|
58
|
+
constructor(pattern, params) {
|
|
59
|
+
this.pattern = pattern;
|
|
60
|
+
this.kind = "importerId";
|
|
61
|
+
this.params = params ?? { cleanUrl: false };
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var ModuleType = class {
|
|
65
|
+
kind;
|
|
66
|
+
pattern;
|
|
67
|
+
constructor(pattern) {
|
|
68
|
+
this.pattern = pattern;
|
|
69
|
+
this.kind = "moduleType";
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var Code = class {
|
|
73
|
+
kind;
|
|
74
|
+
pattern;
|
|
75
|
+
constructor(expr) {
|
|
76
|
+
this.pattern = expr;
|
|
77
|
+
this.kind = "code";
|
|
78
|
+
}
|
|
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
|
+
};
|
|
90
|
+
var Include = class {
|
|
91
|
+
kind;
|
|
92
|
+
expr;
|
|
93
|
+
constructor(expr) {
|
|
94
|
+
this.expr = expr;
|
|
95
|
+
this.kind = "include";
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var Exclude = class {
|
|
99
|
+
kind;
|
|
100
|
+
expr;
|
|
101
|
+
constructor(expr) {
|
|
102
|
+
this.expr = expr;
|
|
103
|
+
this.kind = "exclude";
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
function and(...args) {
|
|
107
|
+
return new And(...args);
|
|
108
|
+
}
|
|
109
|
+
function or(...args) {
|
|
110
|
+
return new Or(...args);
|
|
111
|
+
}
|
|
112
|
+
function not(expr) {
|
|
113
|
+
return new Not(expr);
|
|
114
|
+
}
|
|
115
|
+
function id(pattern, params) {
|
|
116
|
+
return new Id(pattern, params);
|
|
117
|
+
}
|
|
118
|
+
function importerId(pattern, params) {
|
|
119
|
+
return new ImporterId(pattern, params);
|
|
120
|
+
}
|
|
121
|
+
function moduleType(pattern) {
|
|
122
|
+
return new ModuleType(pattern);
|
|
123
|
+
}
|
|
124
|
+
function code(pattern) {
|
|
125
|
+
return new Code(pattern);
|
|
126
|
+
}
|
|
127
|
+
function query(key, pattern) {
|
|
128
|
+
return new Query(key, pattern);
|
|
129
|
+
}
|
|
130
|
+
function include(expr) {
|
|
131
|
+
return new Include(expr);
|
|
132
|
+
}
|
|
133
|
+
function exclude(expr) {
|
|
134
|
+
return new Exclude(expr);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* convert a queryObject to FilterExpression like
|
|
138
|
+
* ```js
|
|
139
|
+
* and(query(k1, v1), query(k2, v2))
|
|
140
|
+
* ```
|
|
141
|
+
* @param queryFilterObject The query filter object needs to be matched.
|
|
142
|
+
* @returns a `And` FilterExpression
|
|
143
|
+
*/
|
|
144
|
+
function queries(queryFilter) {
|
|
145
|
+
return and(...Object.entries(queryFilter).map(([key, value]) => {
|
|
146
|
+
return new Query(key, value);
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
function interpreter(exprs, code$1, id$1, moduleType$1, importerId$1) {
|
|
150
|
+
let arr = [];
|
|
151
|
+
if (Array.isArray(exprs)) arr = exprs;
|
|
152
|
+
else arr = [exprs];
|
|
153
|
+
return interpreterImpl(arr, code$1, id$1, moduleType$1, importerId$1);
|
|
154
|
+
}
|
|
155
|
+
function interpreterImpl(expr, code$1, id$1, moduleType$1, importerId$1, ctx = {}) {
|
|
156
|
+
let hasInclude = false;
|
|
157
|
+
for (const e of expr) switch (e.kind) {
|
|
158
|
+
case "include":
|
|
159
|
+
hasInclude = true;
|
|
160
|
+
if (exprInterpreter(e.expr, code$1, id$1, moduleType$1, importerId$1, ctx)) return true;
|
|
161
|
+
break;
|
|
162
|
+
case "exclude":
|
|
163
|
+
if (exprInterpreter(e.expr, code$1, id$1, moduleType$1, importerId$1, ctx)) return false;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
return !hasInclude;
|
|
167
|
+
}
|
|
168
|
+
function exprInterpreter(expr, code$1, id$1, moduleType$1, importerId$1, ctx = {}) {
|
|
169
|
+
switch (expr.kind) {
|
|
170
|
+
case "and": return expr.args.every((e) => exprInterpreter(e, code$1, id$1, moduleType$1, importerId$1, ctx));
|
|
171
|
+
case "or": return expr.args.some((e) => exprInterpreter(e, code$1, id$1, moduleType$1, importerId$1, ctx));
|
|
172
|
+
case "not": return !exprInterpreter(expr.expr, code$1, id$1, moduleType$1, importerId$1, ctx);
|
|
173
|
+
case "id": {
|
|
174
|
+
if (id$1 === void 0) throw new Error("`id` is required for `id` expression");
|
|
175
|
+
let idToMatch = id$1;
|
|
176
|
+
if (expr.params.cleanUrl) idToMatch = cleanUrl(idToMatch);
|
|
177
|
+
return typeof expr.pattern === "string" ? idToMatch === expr.pattern : expr.pattern.test(idToMatch);
|
|
178
|
+
}
|
|
179
|
+
case "importerId": {
|
|
180
|
+
if (importerId$1 === void 0) return false;
|
|
181
|
+
let importerIdToMatch = importerId$1;
|
|
182
|
+
if (expr.params.cleanUrl) importerIdToMatch = cleanUrl(importerIdToMatch);
|
|
183
|
+
return typeof expr.pattern === "string" ? importerIdToMatch === expr.pattern : expr.pattern.test(importerIdToMatch);
|
|
184
|
+
}
|
|
185
|
+
case "moduleType":
|
|
186
|
+
if (moduleType$1 === void 0) throw new Error("`moduleType` is required for `moduleType` expression");
|
|
187
|
+
return moduleType$1 === expr.pattern;
|
|
188
|
+
case "code":
|
|
189
|
+
if (code$1 === void 0) throw new Error("`code` is required for `code` expression");
|
|
190
|
+
return typeof expr.pattern === "string" ? code$1.includes(expr.pattern) : expr.pattern.test(code$1);
|
|
191
|
+
case "query": {
|
|
192
|
+
if (id$1 === void 0) throw new Error("`id` is required for `Query` expression");
|
|
193
|
+
if (!ctx.urlSearchParamsCache) {
|
|
194
|
+
let queryString = extractQueryWithoutFragment(id$1);
|
|
195
|
+
ctx.urlSearchParamsCache = new URLSearchParams(queryString);
|
|
196
|
+
}
|
|
197
|
+
let urlParams = ctx.urlSearchParamsCache;
|
|
198
|
+
if (typeof expr.pattern === "boolean") if (expr.pattern) return urlParams.has(expr.key);
|
|
199
|
+
else return !urlParams.has(expr.key);
|
|
200
|
+
else if (typeof expr.pattern === "string") return urlParams.get(expr.key) === expr.pattern;
|
|
201
|
+
else return expr.pattern.test(urlParams.get(expr.key) ?? "");
|
|
202
|
+
}
|
|
203
|
+
default: throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region ../pluginutils/dist/filter/filter-vite-plugins.js
|
|
209
|
+
/**
|
|
210
|
+
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
211
|
+
*
|
|
212
|
+
* Since Rolldown operates in build mode, plugins marked with `apply: 'serve'`
|
|
213
|
+
* are intended only for Vite's dev server and should be excluded from the build process.
|
|
214
|
+
*
|
|
215
|
+
* @param plugins - Array of plugins (can include nested arrays)
|
|
216
|
+
* @returns Filtered array with serve-only plugins removed
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```ts
|
|
220
|
+
* import { defineConfig } from 'rolldown';
|
|
221
|
+
* import { filterVitePlugins } from '@rolldown/pluginutils';
|
|
222
|
+
* import viteReact from '@vitejs/plugin-react';
|
|
223
|
+
*
|
|
224
|
+
* export default defineConfig({
|
|
225
|
+
* plugins: filterVitePlugins([
|
|
226
|
+
* viteReact(),
|
|
227
|
+
* {
|
|
228
|
+
* name: 'dev-only',
|
|
229
|
+
* apply: 'serve', // This will be filtered out
|
|
230
|
+
* // ...
|
|
231
|
+
* }
|
|
232
|
+
* ])
|
|
233
|
+
* });
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
function filterVitePlugins(plugins) {
|
|
237
|
+
if (!plugins) return [];
|
|
238
|
+
const pluginArray = Array.isArray(plugins) ? plugins : [plugins];
|
|
239
|
+
const result = [];
|
|
240
|
+
for (const plugin of pluginArray) {
|
|
241
|
+
if (!plugin) continue;
|
|
242
|
+
if (Array.isArray(plugin)) {
|
|
243
|
+
result.push(...filterVitePlugins(plugin));
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const pluginWithApply = plugin;
|
|
247
|
+
if ("apply" in pluginWithApply) {
|
|
248
|
+
const applyValue = pluginWithApply.apply;
|
|
249
|
+
if (typeof applyValue === "function") try {
|
|
250
|
+
if (applyValue({}, {
|
|
251
|
+
command: "build",
|
|
252
|
+
mode: "production"
|
|
253
|
+
})) result.push(plugin);
|
|
254
|
+
} catch {
|
|
255
|
+
result.push(plugin);
|
|
256
|
+
}
|
|
257
|
+
else if (applyValue === "serve") continue;
|
|
258
|
+
else result.push(plugin);
|
|
259
|
+
} else result.push(plugin);
|
|
260
|
+
}
|
|
261
|
+
return result;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region ../pluginutils/dist/filter/simple-filters.js
|
|
266
|
+
/**
|
|
267
|
+
* Constructs a RegExp that matches the exact string specified.
|
|
268
|
+
*
|
|
269
|
+
* This is useful for plugin hook filters.
|
|
270
|
+
*
|
|
271
|
+
* @param str the string to match.
|
|
272
|
+
* @param flags flags for the RegExp.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```ts
|
|
276
|
+
* import { exactRegex } from '@rolldown/pluginutils';
|
|
277
|
+
* const plugin = {
|
|
278
|
+
* name: 'plugin',
|
|
279
|
+
* resolveId: {
|
|
280
|
+
* filter: { id: exactRegex('foo') },
|
|
281
|
+
* handler(id) {} // will only be called for `foo`
|
|
282
|
+
* }
|
|
283
|
+
* }
|
|
284
|
+
* ```
|
|
285
|
+
*/
|
|
286
|
+
function exactRegex(str, flags) {
|
|
287
|
+
return new RegExp(`^${escapeRegex(str)}$`, flags);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Constructs a RegExp that matches a value that has the specified prefix.
|
|
291
|
+
*
|
|
292
|
+
* This is useful for plugin hook filters.
|
|
293
|
+
*
|
|
294
|
+
* @param str the string to match.
|
|
295
|
+
* @param flags flags for the RegExp.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```ts
|
|
299
|
+
* import { prefixRegex } from '@rolldown/pluginutils';
|
|
300
|
+
* const plugin = {
|
|
301
|
+
* name: 'plugin',
|
|
302
|
+
* resolveId: {
|
|
303
|
+
* filter: { id: prefixRegex('foo') },
|
|
304
|
+
* handler(id) {} // will only be called for IDs starting with `foo`
|
|
305
|
+
* }
|
|
306
|
+
* }
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
function prefixRegex(str, flags) {
|
|
310
|
+
return new RegExp(`^${escapeRegex(str)}`, flags);
|
|
311
|
+
}
|
|
312
|
+
const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
|
|
313
|
+
function escapeRegex(str) {
|
|
314
|
+
return str.replace(escapeRegexRE, "\\$&");
|
|
315
|
+
}
|
|
316
|
+
function makeIdFiltersToMatchWithQuery(input) {
|
|
317
|
+
if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(input);
|
|
318
|
+
return input.map((i) => makeIdFilterToMatchWithQuery(i));
|
|
319
|
+
}
|
|
320
|
+
function makeIdFilterToMatchWithQuery(input) {
|
|
321
|
+
if (typeof input === "string") return `${input}{?*,}`;
|
|
322
|
+
return makeRegexIdFilterToMatchWithQuery(input);
|
|
323
|
+
}
|
|
324
|
+
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
325
|
+
return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
//#endregion
|
|
4
329
|
//#region src/plugin/with-filter.ts
|
|
5
330
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
6
331
|
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
@@ -41,4 +366,4 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
41
366
|
}
|
|
42
367
|
|
|
43
368
|
//#endregion
|
|
44
|
-
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
|
369
|
+
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BpAvp7KV.mjs";
|
|
2
2
|
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-CDyF6W3D.mjs";
|
|
3
|
-
import { $ as RolldownFsModule, At as RolldownOutput, B as EmittedPrebuiltChunk, C as ResolveIdResult, D as SourceDescription, Dt as OutputChunk, E as RolldownPluginOption, Et as OutputAsset, F as OutputBundle, G as MinimalPluginContext, H as PluginContext, I as TreeshakingOptions, J as HookFilter, K as PluginContextMeta, L as TransformPluginContext, M as ExistingRawSourceMap, N as SourceMapInput, Nt as ModuleInfo, O as TransformResult, Ot as RenderedChunk, P as RolldownOptionsFunction, Pt as SourcemapIgnoreListOption, Q as RolldownFileStats, R as EmittedAsset, S as ResolveIdExtraOptions, St as PreRenderedAsset, T as RolldownPlugin, U as DefineParallelPluginResult, V as GetModuleInfo, X as BufferEncoding, Y as ModuleTypeFilter, Z as RolldownDirectoryEntry, _ as ModuleType, _t as GeneratedCodePreset, a as InputOption, at as watch, b as PartialResolvedId, bt as ModuleFormat, c as OptimizationOptions, ct as WatchOptions, d as CustomPluginOptions, dt as BuildOptions, et as InternalModuleFormat, f as FunctionPluginHooks, ft as build, g as ModuleOptions, gt as GeneratedCodeOptions, h as LoadResult, ht as ChunkingContext, i as ExternalOption, it as WarningHandlerWithDefault, j as VERSION, jt as SourceMap, kt as RenderedModule, l as WatcherOptions, lt as rolldown, m as ImportKind, mt as ChunkFileNamesFunction, n as ConfigExport, nt as NormalizedInputOptions, o as InputOptions, ot as RolldownWatcher, p as HookFilterExtension, pt as AddonFunction, q as GeneralHookFilter, r as RolldownOptions, rt as LoggingFunction, s as ModuleTypes, st as RolldownWatcherEvent, t as defineConfig, tt as NormalizedOutputOptions, u as AsyncPluginHooks, ut as RolldownBuild, v as ObjectHook, vt as GlobalsFunction, w as ResolvedId, wt as PartialNull, x as Plugin, xt as OutputOptions, y as ParallelPluginHooks, yt as MinifyOptions, z as EmittedFile } from "./shared/define-config-
|
|
3
|
+
import { $ as RolldownFsModule, At as RolldownOutput, B as EmittedPrebuiltChunk, C as ResolveIdResult, D as SourceDescription, Dt as OutputChunk, E as RolldownPluginOption, Et as OutputAsset, F as OutputBundle, G as MinimalPluginContext, H as PluginContext, I as TreeshakingOptions, J as HookFilter, K as PluginContextMeta, L as TransformPluginContext, M as ExistingRawSourceMap, N as SourceMapInput, Nt as ModuleInfo, O as TransformResult, Ot as RenderedChunk, P as RolldownOptionsFunction, Pt as SourcemapIgnoreListOption, Q as RolldownFileStats, R as EmittedAsset, S as ResolveIdExtraOptions, St as PreRenderedAsset, T as RolldownPlugin, U as DefineParallelPluginResult, V as GetModuleInfo, X as BufferEncoding, Y as ModuleTypeFilter, Z as RolldownDirectoryEntry, _ as ModuleType, _t as GeneratedCodePreset, a as InputOption, at as watch, b as PartialResolvedId, bt as ModuleFormat, c as OptimizationOptions, ct as WatchOptions, d as CustomPluginOptions, dt as BuildOptions, et as InternalModuleFormat, f as FunctionPluginHooks, ft as build, g as ModuleOptions, gt as GeneratedCodeOptions, h as LoadResult, ht as ChunkingContext, i as ExternalOption, it as WarningHandlerWithDefault, j as VERSION, jt as SourceMap, kt as RenderedModule, l as WatcherOptions, lt as rolldown, m as ImportKind, mt as ChunkFileNamesFunction, n as ConfigExport, nt as NormalizedInputOptions, o as InputOptions, ot as RolldownWatcher, p as HookFilterExtension, pt as AddonFunction, q as GeneralHookFilter, r as RolldownOptions, rt as LoggingFunction, s as ModuleTypes, st as RolldownWatcherEvent, t as defineConfig, tt as NormalizedOutputOptions, u as AsyncPluginHooks, ut as RolldownBuild, v as ObjectHook, vt as GlobalsFunction, w as ResolvedId, wt as PartialNull, x as Plugin, xt as OutputOptions, y as ParallelPluginHooks, yt as MinifyOptions, z as EmittedFile } from "./shared/define-config-kYHtCO-M.mjs";
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, 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,10 +1,10 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import { y as VERSION } from "./shared/normalize-string-or-regex-
|
|
4
|
-
import "./shared/rolldown-build
|
|
5
|
-
import "./shared/bindingify-input-options-
|
|
6
|
-
import "./shared/parse-ast-index-
|
|
7
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CyvuFK7g.mjs";
|
|
3
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
4
|
+
import "./shared/rolldown-build--qygLwCL.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-B8B4dvr-.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-CF29fS6Z.mjs";
|
|
8
8
|
import { t as defineConfig } from "./shared/define-config-BF4P-Pum.mjs";
|
|
9
9
|
import { isMainThread } from "node:worker_threads";
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-B8B4dvr-.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
-
import { Ct as MaybePromise, x as Plugin } from "./shared/define-config-
|
|
2
|
+
import { Ct as MaybePromise, x as Plugin } from "./shared/define-config-kYHtCO-M.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-
|
|
1
|
+
import "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-Bcjhsr8U.mjs";
|
|
3
3
|
|
|
4
4
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as BindingReplacePluginConfig } from "./shared/binding-CDyF6W3D.mjs";
|
|
2
|
-
import { A as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
2
|
+
import { A as BuiltinPlugin } from "./shared/define-config-kYHtCO-M.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BnPlw43Q.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import "./shared/binding-Cuiiq-jL.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-0t36Z7KW.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CxTKGwaB.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
6
|
/**
|
|
@@ -110,7 +110,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110
110
|
try {
|
|
111
111
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
112
112
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
113
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
113
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
114
114
|
return binding;
|
|
115
115
|
} catch (e) {
|
|
116
116
|
loadErrors.push(e);
|
|
@@ -124,7 +124,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
124
124
|
try {
|
|
125
125
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
126
126
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
127
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
127
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
128
128
|
return binding;
|
|
129
129
|
} catch (e) {
|
|
130
130
|
loadErrors.push(e);
|
|
@@ -139,7 +139,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
141
141
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
142
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
142
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
143
|
return binding;
|
|
144
144
|
} catch (e) {
|
|
145
145
|
loadErrors.push(e);
|
|
@@ -153,7 +153,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
153
153
|
try {
|
|
154
154
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
155
155
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
156
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
156
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
157
157
|
return binding;
|
|
158
158
|
} catch (e) {
|
|
159
159
|
loadErrors.push(e);
|
|
@@ -168,7 +168,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
168
168
|
try {
|
|
169
169
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
170
170
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
171
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
171
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
172
172
|
return binding;
|
|
173
173
|
} catch (e) {
|
|
174
174
|
loadErrors.push(e);
|
|
@@ -182,7 +182,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
184
184
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
185
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
185
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
186
186
|
return binding;
|
|
187
187
|
} catch (e) {
|
|
188
188
|
loadErrors.push(e);
|
|
@@ -197,7 +197,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
197
197
|
try {
|
|
198
198
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
199
199
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
200
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
200
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
201
201
|
return binding;
|
|
202
202
|
} catch (e) {
|
|
203
203
|
loadErrors.push(e);
|
|
@@ -211,7 +211,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
211
211
|
try {
|
|
212
212
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
213
213
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
214
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
214
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
215
215
|
return binding;
|
|
216
216
|
} catch (e) {
|
|
217
217
|
loadErrors.push(e);
|
|
@@ -225,7 +225,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
225
225
|
try {
|
|
226
226
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
227
227
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
228
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
228
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
229
229
|
return binding;
|
|
230
230
|
} catch (e) {
|
|
231
231
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
240
240
|
try {
|
|
241
241
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
242
242
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
243
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
244
|
return binding;
|
|
245
245
|
} catch (e) {
|
|
246
246
|
loadErrors.push(e);
|
|
@@ -254,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
256
256
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
257
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
257
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
258
258
|
return binding;
|
|
259
259
|
} catch (e) {
|
|
260
260
|
loadErrors.push(e);
|
|
@@ -269,7 +269,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
269
269
|
try {
|
|
270
270
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
271
271
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
272
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
272
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
273
273
|
return binding;
|
|
274
274
|
} catch (e) {
|
|
275
275
|
loadErrors.push(e);
|
|
@@ -283,7 +283,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
285
285
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
286
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
286
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
287
287
|
return binding;
|
|
288
288
|
} catch (e) {
|
|
289
289
|
loadErrors.push(e);
|
|
@@ -298,7 +298,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
300
300
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
301
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
302
|
return binding;
|
|
303
303
|
} catch (e) {
|
|
304
304
|
loadErrors.push(e);
|
|
@@ -312,7 +312,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
312
312
|
try {
|
|
313
313
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
314
314
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
315
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
315
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
316
|
return binding;
|
|
317
317
|
} catch (e) {
|
|
318
318
|
loadErrors.push(e);
|
|
@@ -327,7 +327,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
327
327
|
try {
|
|
328
328
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
329
329
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
330
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
331
|
return binding;
|
|
332
332
|
} catch (e) {
|
|
333
333
|
loadErrors.push(e);
|
|
@@ -341,7 +341,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
341
|
try {
|
|
342
342
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
343
343
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
344
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
345
|
return binding;
|
|
346
346
|
} catch (e) {
|
|
347
347
|
loadErrors.push(e);
|
|
@@ -356,7 +356,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
356
356
|
try {
|
|
357
357
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
358
358
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
359
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
360
|
return binding;
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
@@ -370,7 +370,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
370
|
try {
|
|
371
371
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
372
372
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
373
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
374
|
return binding;
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
@@ -385,7 +385,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
387
387
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
388
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
388
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
389
389
|
return binding;
|
|
390
390
|
} catch (e) {
|
|
391
391
|
loadErrors.push(e);
|
|
@@ -399,7 +399,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
399
399
|
try {
|
|
400
400
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
401
401
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
402
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
402
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
403
403
|
return binding;
|
|
404
404
|
} catch (e) {
|
|
405
405
|
loadErrors.push(e);
|
|
@@ -414,7 +414,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
414
414
|
try {
|
|
415
415
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
416
416
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
417
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
417
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
418
418
|
return binding;
|
|
419
419
|
} catch (e) {
|
|
420
420
|
loadErrors.push(e);
|
|
@@ -428,7 +428,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
428
428
|
try {
|
|
429
429
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
430
430
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
431
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
431
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
432
432
|
return binding;
|
|
433
433
|
} catch (e) {
|
|
434
434
|
loadErrors.push(e);
|
|
@@ -443,7 +443,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
443
443
|
try {
|
|
444
444
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
445
445
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
446
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
446
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
447
447
|
return binding;
|
|
448
448
|
} catch (e) {
|
|
449
449
|
loadErrors.push(e);
|
|
@@ -457,7 +457,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
457
457
|
try {
|
|
458
458
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
459
459
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
460
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
460
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
461
461
|
return binding;
|
|
462
462
|
} catch (e) {
|
|
463
463
|
loadErrors.push(e);
|
|
@@ -471,7 +471,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
471
471
|
try {
|
|
472
472
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
473
473
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
474
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
474
|
+
if (bindingPackageVersion !== "1.0.0-beta.57" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.57 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
475
475
|
return binding;
|
|
476
476
|
} catch (e) {
|
|
477
477
|
loadErrors.push(e);
|
package/dist/shared/{bindingify-input-options-CO3Vzzk3.mjs → bindingify-input-options-B8B4dvr-.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Cuiiq-jL.mjs";
|
|
2
2
|
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { a as unreachable, o as unsupported, t as arraify } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
4
|
+
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-0t36Z7KW.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-Bcjhsr8U.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rolldown/pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-CDyF6W3D.mjs";
|
|
2
|
-
import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-
|
|
2
|
+
import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-kYHtCO-M.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-0t36Z7KW.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1203,6 +1203,11 @@ interface ChecksOptions {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
emptyImportMeta?: boolean;
|
|
1205
1205
|
/**
|
|
1206
|
+
* Whether to emit warning when detecting cannot call namespace
|
|
1207
|
+
* @default true
|
|
1208
|
+
*/
|
|
1209
|
+
cannotCallNamespace?: boolean;
|
|
1210
|
+
/**
|
|
1206
1211
|
* Whether to emit warning when detecting configuration field conflict
|
|
1207
1212
|
* @default true
|
|
1208
1213
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Cuiiq-jL.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { r as noop } from "./misc-DpjTMcQQ.mjs";
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.57";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Cuiiq-jL.mjs";
|
|
2
2
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/oxc-parser@0.103.0/node_modules/oxc-parser/src-js/wrap.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build--qygLwCL.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Cuiiq-jL.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { i as unimplemented } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-
|
|
5
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
4
|
+
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-0t36Z7KW.mjs";
|
|
5
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-B8B4dvr-.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { styleText } from "node:util";
|
|
@@ -1614,6 +1614,7 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1614
1614
|
commonJsVariableInEsm: pipe(optional(boolean()), description("Whether to emit warning when detecting common js variable in esm")),
|
|
1615
1615
|
importIsUndefined: pipe(optional(boolean()), description("Whether to emit warning when detecting import is undefined")),
|
|
1616
1616
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
|
|
1617
|
+
cannotCallNamespace: pipe(optional(boolean()), description("Whether to emit warning when detecting cannot call namespace")),
|
|
1617
1618
|
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
1618
1619
|
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature")),
|
|
1619
1620
|
couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory")),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-Cuiiq-jL.mjs";
|
|
2
2
|
import { o as logMultiplyNotifyOption } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
import { t as arraify } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
-
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build
|
|
6
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
4
|
+
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-0t36Z7KW.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build--qygLwCL.mjs";
|
|
6
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-B8B4dvr-.mjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.57",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@oxc-project/types": "=0.103.0",
|
|
83
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
83
|
+
"@rolldown/pluginutils": "1.0.0-beta.57"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -97,28 +97,28 @@
|
|
|
97
97
|
"rolldown-plugin-dts": "^0.19.0",
|
|
98
98
|
"rollup": "^4.18.0",
|
|
99
99
|
"signal-exit": "4.1.0",
|
|
100
|
-
"source-map": "^0.7.
|
|
100
|
+
"source-map": "^0.7.6",
|
|
101
101
|
"typescript": "^5.8.3",
|
|
102
102
|
"valibot": "1.2.0",
|
|
103
|
-
"rolldown": "1.0.0-beta.
|
|
103
|
+
"rolldown": "1.0.0-beta.57"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^20.19.0 || >=22.12.0"
|
|
107
107
|
},
|
|
108
108
|
"optionalDependencies": {
|
|
109
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
110
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
111
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
121
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
109
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.57",
|
|
110
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.57",
|
|
111
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.57",
|
|
112
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.57",
|
|
113
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.57",
|
|
114
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.57",
|
|
115
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.57",
|
|
116
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.57",
|
|
117
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.57",
|
|
118
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.57",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.57",
|
|
120
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.57",
|
|
121
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.57"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"# Scrips for binding #": "_",
|