@rollipop/rolldown 0.0.0-beta.1 → 0.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-setup.mjs +1 -1
- package/dist/cli.mjs +37 -37
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +4 -62
- package/dist/experimental-index.mjs +7 -40
- package/dist/experimental-runtime-types.d.ts +12 -1
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-kAegJ1Bj.d.mts → binding-C9YdqoUG.d.mts} +2 -120
- package/dist/shared/{binding-BGro4B9r.mjs → binding-uOeDeDzp.mjs} +26 -27
- package/dist/shared/{bindingify-input-options-Cbn4Fx-U.mjs → bindingify-input-options-CuBDHglZ.mjs} +573 -21
- package/dist/shared/{constructors-BaMrri8j.d.mts → constructors-D9F4Aj4h.d.mts} +3 -5
- package/dist/shared/{constructors-g6aWFjfR.mjs → constructors-DmSv3tnW.mjs} +2 -8
- package/dist/shared/{define-config-C0bKR4ot.d.mts → define-config-glNgjHCc.d.mts} +6 -1
- package/dist/shared/{load-config-CSb1tL9s.mjs → load-config-Bo3y98vw.mjs} +1 -1
- package/dist/shared/{logs-cyjC0SDv.mjs → logs-N5Akftom.mjs} +2 -2
- package/dist/shared/normalize-string-or-regex-0f6WITto.mjs +61 -0
- package/dist/shared/{parse-ast-index-oopYDFzI.mjs → parse-ast-index-B0iVLbj6.mjs} +2 -2
- package/dist/shared/{prompt-5sWCM0jm.mjs → prompt-BZ-QjPVS.mjs} +45 -45
- package/dist/shared/{rolldown-build-CENRTWd-.mjs → rolldown-build-BqHWBpp7.mjs} +15 -13
- package/dist/shared/{rolldown-DA9aR8tX.mjs → rolldown-mAJGca5O.mjs} +1 -1
- package/dist/shared/{watch-CjiZ0BRX.mjs → watch-Ce8bKBAn.mjs} +5 -6
- package/package.json +11 -11
- package/dist/shared/normalize-string-or-regex-CjC3YBVf.mjs +0 -670
- /package/dist/shared/{misc-DpjTMcQQ.mjs → misc-0HsaOsAX.mjs} +0 -0
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-uOeDeDzp.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-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./shared/
|
|
7
|
-
import "./shared/parse-ast-index-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
1
|
+
import "./shared/binding-uOeDeDzp.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-Ce8bKBAn.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
4
|
+
import { C as description, w as version } from "./shared/bindingify-input-options-CuBDHglZ.mjs";
|
|
5
|
+
import { t as arraify } from "./shared/misc-0HsaOsAX.mjs";
|
|
6
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-BqHWBpp7.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-B0iVLbj6.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-mAJGca5O.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-Bo3y98vw.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";
|
|
@@ -951,7 +951,7 @@ function createConsola(options$1 = {}) {
|
|
|
951
951
|
defaults: { level },
|
|
952
952
|
stdout: process.stdout,
|
|
953
953
|
stderr: process.stderr,
|
|
954
|
-
prompt: (...args) => import("./shared/prompt-
|
|
954
|
+
prompt: (...args) => import("./shared/prompt-BZ-QjPVS.mjs").then((m) => m.prompt(...args)),
|
|
955
955
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
956
956
|
...options$1
|
|
957
957
|
});
|
|
@@ -1240,32 +1240,32 @@ function getClearScreenFunction(options$1) {
|
|
|
1240
1240
|
//#endregion
|
|
1241
1241
|
//#region \0@oxc-project+runtime@0.108.0/helpers/usingCtx.js
|
|
1242
1242
|
function _usingCtx() {
|
|
1243
|
-
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$
|
|
1244
|
-
var n$
|
|
1245
|
-
return n$
|
|
1243
|
+
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$1, e) {
|
|
1244
|
+
var n$1 = Error();
|
|
1245
|
+
return n$1.name = "SuppressedError", n$1.error = r$1, n$1.suppressed = e, n$1;
|
|
1246
1246
|
}, e = {}, n$1 = [];
|
|
1247
|
-
function using(r$
|
|
1248
|
-
if (null != e
|
|
1249
|
-
if (Object(e
|
|
1250
|
-
if (r$
|
|
1251
|
-
if (void 0 === o$1 && (o$1 = e
|
|
1247
|
+
function using(r$1, e) {
|
|
1248
|
+
if (null != e) {
|
|
1249
|
+
if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
|
|
1250
|
+
if (r$1) var o$1 = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
|
|
1251
|
+
if (void 0 === o$1 && (o$1 = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r$1)) var t$1 = o$1;
|
|
1252
1252
|
if ("function" != typeof o$1) throw new TypeError("Object is not disposable.");
|
|
1253
|
-
t$1 && (o$1 = function o$
|
|
1253
|
+
t$1 && (o$1 = function o$1() {
|
|
1254
1254
|
try {
|
|
1255
|
-
t$1.call(e
|
|
1256
|
-
} catch (r$
|
|
1257
|
-
return Promise.reject(r$
|
|
1255
|
+
t$1.call(e);
|
|
1256
|
+
} catch (r$1) {
|
|
1257
|
+
return Promise.reject(r$1);
|
|
1258
1258
|
}
|
|
1259
1259
|
}), n$1.push({
|
|
1260
|
-
v: e
|
|
1260
|
+
v: e,
|
|
1261
1261
|
d: o$1,
|
|
1262
|
-
a: r$
|
|
1262
|
+
a: r$1
|
|
1263
1263
|
});
|
|
1264
|
-
} else r$
|
|
1265
|
-
d: e
|
|
1266
|
-
a: r$
|
|
1264
|
+
} else r$1 && n$1.push({
|
|
1265
|
+
d: e,
|
|
1266
|
+
a: r$1
|
|
1267
1267
|
});
|
|
1268
|
-
return e
|
|
1268
|
+
return e;
|
|
1269
1269
|
}
|
|
1270
1270
|
return {
|
|
1271
1271
|
e,
|
|
@@ -1277,17 +1277,17 @@ function _usingCtx() {
|
|
|
1277
1277
|
for (; o$1 = n$1.pop();) try {
|
|
1278
1278
|
if (!o$1.a && 1 === s$1) return s$1 = 0, n$1.push(o$1), Promise.resolve().then(next);
|
|
1279
1279
|
if (o$1.d) {
|
|
1280
|
-
var r$
|
|
1281
|
-
if (o$1.a) return s$1 |= 2, Promise.resolve(r$
|
|
1280
|
+
var r$1 = o$1.d.call(o$1.v);
|
|
1281
|
+
if (o$1.a) return s$1 |= 2, Promise.resolve(r$1).then(next, err);
|
|
1282
1282
|
} else s$1 |= 1;
|
|
1283
|
-
} catch (r$
|
|
1284
|
-
return err(r$
|
|
1283
|
+
} catch (r$1) {
|
|
1284
|
+
return err(r$1);
|
|
1285
1285
|
}
|
|
1286
1286
|
if (1 === s$1) return t$1 !== e ? Promise.reject(t$1) : Promise.resolve();
|
|
1287
1287
|
if (t$1 !== e) throw t$1;
|
|
1288
1288
|
}
|
|
1289
|
-
function err(n$
|
|
1290
|
-
return t$1 = t$1 !== e ? new r$1(n$
|
|
1289
|
+
function err(n$1) {
|
|
1290
|
+
return t$1 = t$1 !== e ? new r$1(n$1, t$1) : n$1, next();
|
|
1291
1291
|
}
|
|
1292
1292
|
return next();
|
|
1293
1293
|
}
|
|
@@ -1387,10 +1387,10 @@ async function bundleInner(config, cliOptions) {
|
|
|
1387
1387
|
const startTime = performance.now();
|
|
1388
1388
|
const result = [];
|
|
1389
1389
|
const configList = arraify(config);
|
|
1390
|
-
for (const config
|
|
1391
|
-
const outputList = arraify(config
|
|
1390
|
+
for (const config of configList) {
|
|
1391
|
+
const outputList = arraify(config.output || {});
|
|
1392
1392
|
const build = await rolldown({
|
|
1393
|
-
...config
|
|
1393
|
+
...config,
|
|
1394
1394
|
...cliOptions.input
|
|
1395
1395
|
});
|
|
1396
1396
|
try {
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { r as defineConfig, t as ConfigExport } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-C9YdqoUG.mjs";
|
|
2
|
+
import { r as defineConfig, t as ConfigExport } from "./shared/define-config-glNgjHCc.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
|
|
3
|
-
import "./shared/
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/parse-ast-index-
|
|
6
|
-
import "./shared/rolldown-
|
|
1
|
+
import "./shared/binding-uOeDeDzp.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
3
|
+
import { w as version } from "./shared/bindingify-input-options-CuBDHglZ.mjs";
|
|
4
|
+
import "./shared/rolldown-build-BqHWBpp7.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-B0iVLbj6.mjs";
|
|
6
|
+
import "./shared/rolldown-mAJGca5O.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-Bo3y98vw.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/config.ts
|
|
11
11
|
const VERSION = version;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Et as OutputOptions,
|
|
3
|
-
import { a as
|
|
1
|
+
import { A as MinifyResult, B as isolatedDeclaration, D as IsolatedDeclarationsResult, E as IsolatedDeclarationsOptions, F as ResolveResult, G as transform, H as minify, I as ResolverFactory, K as transformSync, L as TransformOptions, M as ParseResult, N as ParserOptions, R as TransformResult, U as minifySync, V as isolatedDeclarationSync, W as moduleRunnerTransform, c as BindingRebuildStrategy, g as BindingViteManifestPluginConfig, j as NapiResolveOptions, k as MinifyOptions, n as BindingBundleState, r as BindingClientHmrUpdate, x as BindingViteTransformPluginConfig, z as createTokioRuntime } from "./shared/binding-C9YdqoUG.mjs";
|
|
2
|
+
import { Et as OutputOptions, Ft as RolldownOutput, G as defineParallelPlugin, Lt as freeExternalMemory, M as BuiltinPlugin, c as InputOptions, nt as NormalizedOutputOptions } from "./shared/define-config-glNgjHCc.mjs";
|
|
3
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-D9F4Aj4h.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/api/dev/dev-options.d.ts
|
|
6
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -129,9 +129,6 @@ type ViteAliasPluginConfig = {
|
|
|
129
129
|
};
|
|
130
130
|
declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
131
131
|
//#endregion
|
|
132
|
-
//#region src/builtin-plugin/asset-plugin.d.ts
|
|
133
|
-
declare function viteAssetPlugin(config: BindingViteAssetPluginConfig): BuiltinPlugin;
|
|
134
|
-
//#endregion
|
|
135
132
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
136
133
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
137
134
|
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
|
|
@@ -142,61 +139,6 @@ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" |
|
|
|
142
139
|
};
|
|
143
140
|
declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
|
|
144
141
|
//#endregion
|
|
145
|
-
//#region src/builtin-plugin/vite-css-plugin.d.ts
|
|
146
|
-
type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
147
|
-
compileCSS: (url: string, importer: string, resolver: BindingUrlResolver) => Promise<{
|
|
148
|
-
code: string;
|
|
149
|
-
map?: SourceMapInput;
|
|
150
|
-
modules?: Record<string, string>;
|
|
151
|
-
deps?: Set<string>;
|
|
152
|
-
}>;
|
|
153
|
-
};
|
|
154
|
-
declare function viteCSSPlugin(config: ViteCssPluginConfig): BuiltinPlugin;
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region src/builtin-plugin/vite-css-post-plugin.d.ts
|
|
157
|
-
type ViteCssPostPluginConfig = Omit<BindingViteCssPostPluginConfig, "cssScopeTo" | "isLegacy"> & {
|
|
158
|
-
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
159
|
-
};
|
|
160
|
-
declare function viteCSSPostPlugin(config: ViteCssPostPluginConfig): BuiltinPlugin;
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
163
|
-
interface HtmlTagDescriptor {
|
|
164
|
-
tag: string;
|
|
165
|
-
/**
|
|
166
|
-
* attribute values will be escaped automatically if needed
|
|
167
|
-
*/
|
|
168
|
-
attrs?: Record<string, string | boolean | undefined>;
|
|
169
|
-
children?: string | HtmlTagDescriptor[];
|
|
170
|
-
/**
|
|
171
|
-
* default: 'head-prepend'
|
|
172
|
-
*/
|
|
173
|
-
injectTo?: "head" | "body" | "head-prepend" | "body-prepend";
|
|
174
|
-
}
|
|
175
|
-
type IndexHtmlTransformResult = string | HtmlTagDescriptor[] | {
|
|
176
|
-
html: string;
|
|
177
|
-
tags: HtmlTagDescriptor[];
|
|
178
|
-
};
|
|
179
|
-
type IndexHtmlTransformHook = (this: MinimalPluginContext, html: string, ctx: IndexHtmlTransformContext) => IndexHtmlTransformResult | void | Promise<IndexHtmlTransformResult | void>;
|
|
180
|
-
interface IndexHtmlTransformContext {
|
|
181
|
-
/**
|
|
182
|
-
* public path when served
|
|
183
|
-
*/
|
|
184
|
-
path: string;
|
|
185
|
-
/**
|
|
186
|
-
* filename on disk
|
|
187
|
-
*/
|
|
188
|
-
filename: string;
|
|
189
|
-
bundle?: OutputBundle;
|
|
190
|
-
chunk?: OutputChunk;
|
|
191
|
-
}
|
|
192
|
-
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml" | "setModuleSideEffects"> {
|
|
193
|
-
preHooks: IndexHtmlTransformHook[];
|
|
194
|
-
normalHooks: IndexHtmlTransformHook[];
|
|
195
|
-
postHooks: IndexHtmlTransformHook[];
|
|
196
|
-
applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
|
|
197
|
-
}
|
|
198
|
-
declare function viteHtmlPlugin(config: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
199
|
-
//#endregion
|
|
200
142
|
//#region src/builtin-plugin/vite-manifest-plugin.d.ts
|
|
201
143
|
type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
|
|
202
144
|
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
@@ -236,4 +178,4 @@ declare const memfs: {
|
|
|
236
178
|
volume: any;
|
|
237
179
|
} | undefined;
|
|
238
180
|
//#endregion
|
|
239
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult,
|
|
181
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as parseSync, r as parse } from "./shared/parse-ast-index-
|
|
6
|
-
import { a as
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-uOeDeDzp.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
3
|
+
import { c as transformToRollupOutput, o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-CuBDHglZ.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-BqHWBpp7.mjs";
|
|
5
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-B0iVLbj6.mjs";
|
|
6
|
+
import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-DmSv3tnW.mjs";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
8
|
|
|
9
9
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -202,12 +202,6 @@ function viteAliasPlugin(config) {
|
|
|
202
202
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/builtin-plugin/asset-plugin.ts
|
|
207
|
-
function viteAssetPlugin(config) {
|
|
208
|
-
return new BuiltinPlugin("builtin:vite-asset", config);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
205
|
//#endregion
|
|
212
206
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
213
207
|
function viteTransformPlugin(config) {
|
|
@@ -221,33 +215,6 @@ function viteTransformPlugin(config) {
|
|
|
221
215
|
});
|
|
222
216
|
}
|
|
223
217
|
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region src/builtin-plugin/vite-css-plugin.ts
|
|
226
|
-
function viteCSSPlugin(config) {
|
|
227
|
-
return new BuiltinPlugin("builtin:vite-css", config ? {
|
|
228
|
-
...config,
|
|
229
|
-
async compileCSS(url, importer, resolver) {
|
|
230
|
-
let result = await config.compileCSS(url, importer, resolver);
|
|
231
|
-
return {
|
|
232
|
-
...result,
|
|
233
|
-
map: bindingifySourcemap(result.map)
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
} : void 0);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region src/builtin-plugin/vite-css-post-plugin.ts
|
|
241
|
-
function viteCSSPostPlugin(config) {
|
|
242
|
-
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
247
|
-
function viteHtmlPlugin(config) {
|
|
248
|
-
return new BuiltinPlugin("builtin:vite-html", config);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
218
|
//#endregion
|
|
252
219
|
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
253
220
|
function viteManifestPlugin(config) {
|
|
@@ -296,4 +263,4 @@ var minifySync = import_binding.minifySync;
|
|
|
296
263
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
297
264
|
var transform = import_binding.transform;
|
|
298
265
|
var transformSync = import_binding.transformSync;
|
|
299
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin,
|
|
266
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
export class DevRuntime {
|
|
6
6
|
/**
|
|
7
7
|
* @param {Messenger} messenger
|
|
8
|
+
* @param {string} clientId
|
|
8
9
|
*/
|
|
9
|
-
constructor(messenger: Messenger);
|
|
10
|
+
constructor(messenger: Messenger, clientId: string);
|
|
11
|
+
/**
|
|
12
|
+
* Client ID generated at runtime initialization, used for lazy compilation requests.
|
|
13
|
+
* @type {string}
|
|
14
|
+
*/
|
|
15
|
+
clientId: string;
|
|
10
16
|
messenger: Messenger;
|
|
11
17
|
/**
|
|
12
18
|
* @type {Record<string, Module>}
|
|
@@ -63,7 +69,12 @@ export class DevRuntime {
|
|
|
63
69
|
__toDynamicImportESM: (isNodeMode?: boolean) => (mod: any) => any;
|
|
64
70
|
/** @internal */
|
|
65
71
|
__reExport: any;
|
|
72
|
+
cache: string[];
|
|
73
|
+
timeout: NodeJS.Timeout | null;
|
|
74
|
+
timeoutSetLength: number;
|
|
75
|
+
/** @type {(module: string) => void} */
|
|
66
76
|
sendModuleRegisteredMessage: (module: string) => void;
|
|
77
|
+
flush(): void;
|
|
67
78
|
}
|
|
68
79
|
export type DevRuntimeMessage = {
|
|
69
80
|
type: "hmr:module-registered";
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { j as withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-C9YdqoUG.mjs";
|
|
2
|
+
import { j as withFilter } from "./shared/define-config-glNgjHCc.mjs";
|
|
3
3
|
export * from "@rollipop/rolldown-pluginutils/filter";
|
|
4
4
|
export { withFilter };
|
package/dist/filter-index.mjs
CHANGED
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-DsnCZi19.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as RolldownFileStats, A as TransformResult, B as EmittedFile, C as Plugin, Ct as GlobalsFunction, D as RolldownPlugin, Dt as PreRenderedAsset, E as ResolvedId, Et as OutputOptions, F as SourceMapInput, Ft as RolldownOutput, H as GetModuleInfo, I as OutputBundle, It as SourceMap, J as GeneralHookFilter, K as MinimalPluginContext, L as TreeshakingOptions, Mt as OutputChunk, N as VERSION, Nt as RenderedChunk, O as RolldownPluginOption, P as ExistingRawSourceMap, Pt as RenderedModule, Q as RolldownDirectoryEntry, R as TransformPluginContext, Rt as ModuleInfo, S as PartialResolvedId, St as GeneratedCodePreset, T as ResolveIdResult, Tt as ModuleFormat, U as PluginContext, V as EmittedPrebuiltChunk, W as DefineParallelPluginResult, X as ModuleTypeFilter, Y as HookFilter, Z as BufferEncoding, _ as LoadResult, _t as AdvancedChunksGroup, a as ExternalOption, at as ChecksOptions, b as ObjectHook, bt as CodeSplittingGroup, c as InputOptions, ct as watch, d as WatcherOptions, dt as WatchOptions, et as RolldownFsModule, f as AsyncPluginHooks, ft as rolldown, g as ImportKind, gt as AddonFunction, h as HookFilterExtension, ht as build, i as RolldownOptions, it as TransformOptions, jt as OutputAsset, k as SourceDescription, kt as PartialNull, l as ModuleTypes, lt as RolldownWatcher, m as FunctionPluginHooks, mt as BuildOptions, n as RolldownOptionsFunction, nt as NormalizedOutputOptions, o as ExternalOptionFunction, ot as LoggingFunction, p as CustomPluginOptions, pt as RolldownBuild, q as PluginContextMeta, r as defineConfig, rt as NormalizedInputOptions, s as InputOption, st as WarningHandlerWithDefault, t as ConfigExport, tt as InternalModuleFormat, u as OptimizationOptions, ut as RolldownWatcherEvent, v as ModuleOptions, vt as ChunkFileNamesFunction, w as ResolveIdExtraOptions, wt as MinifyOptions, x as ParallelPluginHooks, xt as GeneratedCodeOptions, y as ModuleType, yt as ChunkingContext, z as EmittedAsset, zt as SourcemapIgnoreListOption } from "./shared/define-config-
|
|
2
|
+
import { P as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-C9YdqoUG.mjs";
|
|
3
|
+
import { $ as RolldownFileStats, A as TransformResult, B as EmittedFile, C as Plugin, Ct as GlobalsFunction, D as RolldownPlugin, Dt as PreRenderedAsset, E as ResolvedId, Et as OutputOptions, F as SourceMapInput, Ft as RolldownOutput, H as GetModuleInfo, I as OutputBundle, It as SourceMap, J as GeneralHookFilter, K as MinimalPluginContext, L as TreeshakingOptions, Mt as OutputChunk, N as VERSION, Nt as RenderedChunk, O as RolldownPluginOption, P as ExistingRawSourceMap, Pt as RenderedModule, Q as RolldownDirectoryEntry, R as TransformPluginContext, Rt as ModuleInfo, S as PartialResolvedId, St as GeneratedCodePreset, T as ResolveIdResult, Tt as ModuleFormat, U as PluginContext, V as EmittedPrebuiltChunk, W as DefineParallelPluginResult, X as ModuleTypeFilter, Y as HookFilter, Z as BufferEncoding, _ as LoadResult, _t as AdvancedChunksGroup, a as ExternalOption, at as ChecksOptions, b as ObjectHook, bt as CodeSplittingGroup, c as InputOptions, ct as watch, d as WatcherOptions, dt as WatchOptions, et as RolldownFsModule, f as AsyncPluginHooks, ft as rolldown, g as ImportKind, gt as AddonFunction, h as HookFilterExtension, ht as build, i as RolldownOptions, it as TransformOptions, jt as OutputAsset, k as SourceDescription, kt as PartialNull, l as ModuleTypes, lt as RolldownWatcher, m as FunctionPluginHooks, mt as BuildOptions, n as RolldownOptionsFunction, nt as NormalizedOutputOptions, o as ExternalOptionFunction, ot as LoggingFunction, p as CustomPluginOptions, pt as RolldownBuild, q as PluginContextMeta, r as defineConfig, rt as NormalizedInputOptions, s as InputOption, st as WarningHandlerWithDefault, t as ConfigExport, tt as InternalModuleFormat, u as OptimizationOptions, ut as RolldownWatcherEvent, v as ModuleOptions, vt as ChunkFileNamesFunction, w as ResolveIdExtraOptions, wt as MinifyOptions, x as ParallelPluginHooks, xt as GeneratedCodeOptions, y as ModuleType, yt as ChunkingContext, z as EmittedAsset, zt as SourcemapIgnoreListOption } from "./shared/define-config-glNgjHCc.mjs";
|
|
4
4
|
export { AddonFunction, AdvancedChunksGroup, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, 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, TransformOptions, 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
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
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-uOeDeDzp.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-Ce8bKBAn.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
4
|
+
import { S as VERSION } from "./shared/bindingify-input-options-CuBDHglZ.mjs";
|
|
5
|
+
import "./shared/rolldown-build-BqHWBpp7.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-B0iVLbj6.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-mAJGca5O.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-uOeDeDzp.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CuBDHglZ.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-B0iVLbj6.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
|
-
import "./shared/binding-
|
|
2
|
-
import { C as Plugin, Ot as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-C9YdqoUG.mjs";
|
|
2
|
+
import { C as Plugin, Ot as MaybePromise } from "./shared/define-config-glNgjHCc.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-uOeDeDzp.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-B0iVLbj6.mjs";
|
|
3
3
|
|
|
4
4
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { M as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-C9YdqoUG.mjs";
|
|
2
|
+
import { M as BuiltinPlugin } from "./shared/define-config-glNgjHCc.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-D9F4Aj4h.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 {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import "./shared/binding-uOeDeDzp.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-0f6WITto.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DmSv3tnW.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
6
6
|
/**
|