@rollipop/rolldown 1.0.19 → 1.0.21
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.mjs +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +8 -8
- package/dist/experimental-index.mjs +16 -13
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -2
- package/dist/get-log-filter.d.mts +1 -1
- package/dist/get-log-filter.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +5 -5
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-DtMSH2TR.d.mts → binding-Cu-ojBng.d.mts} +90 -1
- package/dist/shared/{binding-BChg93X-.mjs → binding-xKFuQo-G.mjs} +28 -27
- package/dist/shared/{bindingify-input-options-CWzXbE4Z.mjs → bindingify-input-options-BYPi8wdW.mjs} +28 -8
- package/dist/shared/{constructors-smgFWMGh.mjs → constructors-B1hVHeCp.mjs} +1 -1
- package/dist/shared/{constructors-CAFAkwt5.d.mts → constructors-Cv3icXH8.d.mts} +2 -2
- package/dist/shared/{define-config-BZruoRkr.d.mts → define-config-QGeJq1RS.d.mts} +27 -10
- package/dist/shared/{error-BiiCHg4J.mjs → error-xIBfzJhs.mjs} +1 -1
- package/dist/shared/{get-log-filter-BpNVNJ5-.d.mts → get-log-filter-B4LpBryx.d.mts} +2 -2
- package/dist/shared/{load-config-Bbxpmavj.mjs → load-config-BigBhTqf.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-h2DuCBTJ.mjs → normalize-string-or-regex-CxZ_9Mip.mjs} +1 -1
- package/dist/shared/{parse-6zszY_UC.mjs → parse-BeUE8K-J.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-CQJ1b83F.mjs → resolve-tsconfig-lsIXlxa6.mjs} +2 -2
- package/dist/shared/{rolldown-build-Ntn0HDa2.mjs → rolldown-build-CJYbdPdc.mjs} +14 -7
- package/dist/shared/{rolldown-CYYVcQft.mjs → rolldown-lvkmL-oD.mjs} +2 -2
- package/dist/shared/{transform-DRsRSO7F.d.mts → transform-C91OGt-e.d.mts} +1 -1
- package/dist/shared/{watch-Dzatv8YX.mjs → watch-BomkWqGX.mjs} +5 -5
- package/dist/utils-index.d.mts +5 -5
- package/dist/utils-index.mjs +7 -7
- package/package.json +12 -12
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-BomkWqGX.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-BYPi8wdW.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-CJYbdPdc.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-lvkmL-oD.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-BigBhTqf.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -859,7 +859,7 @@ function getClearScreenFunction(options) {
|
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
//#endregion
|
|
862
|
-
//#region \0@oxc-project+runtime@0.
|
|
862
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/usingCtx.js
|
|
863
863
|
function _usingCtx() {
|
|
864
864
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
865
865
|
var n = Error();
|
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options-
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-BYPi8wdW.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-BigBhTqf.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-
|
|
3
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
1
|
+
import { $ as moduleRunnerTransform, A as BindingViteTransformPluginConfig, G as ResolverFactory, N as IsolatedDeclarationsOptions, P as IsolatedDeclarationsResult, Q as isolatedDeclarationSync, R as NapiResolveOptions, T as BindingViteManifestPluginConfig, W as ResolveResult, X as clearCacheById, Y as clearCache, Z as isolatedDeclaration, f as BindingRebuildStrategy, g as BindingRollipopReactRefreshWrapperPluginConfig, h as BindingRollipopReactNativeTransformResult, i as BindingClientHmrUpdate, n as BindingBundleAnalyzerPluginConfig, r as BindingBundleState, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-Cu-ojBng.mjs";
|
|
2
|
+
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-QGeJq1RS.mjs";
|
|
3
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-C91OGt-e.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Cv3icXH8.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -159,7 +159,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
159
159
|
*
|
|
160
160
|
* @example
|
|
161
161
|
* ```js
|
|
162
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
162
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
163
163
|
*
|
|
164
164
|
* export default {
|
|
165
165
|
* plugins: [
|
|
@@ -171,7 +171,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
171
171
|
* @example
|
|
172
172
|
* **Custom filename**
|
|
173
173
|
* ```js
|
|
174
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
174
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
175
175
|
*
|
|
176
176
|
* export default {
|
|
177
177
|
* plugins: [
|
|
@@ -185,7 +185,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
185
185
|
* @example
|
|
186
186
|
* **LLM-friendly markdown output**
|
|
187
187
|
* ```js
|
|
188
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
188
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
189
189
|
*
|
|
190
190
|
* export default {
|
|
191
191
|
* plugins: [
|
|
@@ -417,4 +417,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
417
417
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
418
418
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
419
419
|
//#endregion
|
|
420
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type RollipopReactNativeFlowConfig, type RollipopReactNativeModuleConfig, type RollipopReactNativeModuleType, type RollipopReactNativePluginConfig, type RollipopReactNativeReactConfig, type RollipopReactNativeRuntimeTarget, type RollipopReactNativeSwcConfig, type RollipopReactNativeTransformResult, RollipopReactNativeTransformer, type RollipopReactNativeTransformerConfig, type RollipopReactNativeWorkletsConfig, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
420
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type RollipopReactNativeFlowConfig, type RollipopReactNativeModuleConfig, type RollipopReactNativeModuleType, type RollipopReactNativePluginConfig, type RollipopReactNativeReactConfig, type RollipopReactNativeRuntimeTarget, type RollipopReactNativeSwcConfig, type RollipopReactNativeTransformResult, RollipopReactNativeTransformer, type RollipopReactNativeTransformerConfig, type RollipopReactNativeWorkletsConfig, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, clearCache, clearCacheById, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-xKFuQo-G.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CxZ_9Mip.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-BYPi8wdW.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CJYbdPdc.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-xIBfzJhs.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-BeUE8K-J.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-B1hVHeCp.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-lsIXlxa6.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -57,7 +57,8 @@ var DevEngine = class DevEngine {
|
|
|
57
57
|
exclude: normalizedStringOrRegex(devOptions.watch.exclude)
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
const inner = new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions);
|
|
61
|
+
return new DevEngine(inner);
|
|
61
62
|
}
|
|
62
63
|
constructor(inner) {
|
|
63
64
|
this.#inner = inner;
|
|
@@ -220,7 +221,7 @@ function viteAliasPlugin(config) {
|
|
|
220
221
|
*
|
|
221
222
|
* @example
|
|
222
223
|
* ```js
|
|
223
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
224
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
224
225
|
*
|
|
225
226
|
* export default {
|
|
226
227
|
* plugins: [
|
|
@@ -232,7 +233,7 @@ function viteAliasPlugin(config) {
|
|
|
232
233
|
* @example
|
|
233
234
|
* **Custom filename**
|
|
234
235
|
* ```js
|
|
235
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
236
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
236
237
|
*
|
|
237
238
|
* export default {
|
|
238
239
|
* plugins: [
|
|
@@ -246,7 +247,7 @@ function viteAliasPlugin(config) {
|
|
|
246
247
|
* @example
|
|
247
248
|
* **LLM-friendly markdown output**
|
|
248
249
|
* ```js
|
|
249
|
-
* import { bundleAnalyzerPlugin } from 'rolldown/experimental';
|
|
250
|
+
* import { bundleAnalyzerPlugin } from '@rollipop/rolldown/experimental';
|
|
250
251
|
*
|
|
251
252
|
* export default {
|
|
252
253
|
* plugins: [
|
|
@@ -402,7 +403,9 @@ const TsconfigCache = TsconfigCache$1;
|
|
|
402
403
|
//#endregion
|
|
403
404
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
404
405
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
406
|
+
var clearCache = import_binding.clearCache;
|
|
407
|
+
var clearCacheById = import_binding.clearCacheById;
|
|
405
408
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
406
409
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
407
410
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
408
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, RollipopReactNativeTransformer, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
411
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, RollipopReactNativeTransformer, TsconfigCache, bundleAnalyzerPlugin, clearCache, clearCacheById, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, rollipopReactNativePlugin, rollipopReactRefreshWrapperPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as withFilter } from "./shared/define-config-
|
|
1
|
+
import { N as withFilter } from "./shared/define-config-QGeJq1RS.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
4
4
|
//#region src/filter/composable-filters.d.ts
|
package/dist/filter-index.mjs
CHANGED
|
@@ -347,8 +347,8 @@ function withFilterImpl(pluginOption, filterObjectList) {
|
|
|
347
347
|
* @example
|
|
348
348
|
* ```ts
|
|
349
349
|
* import yaml from '@rollup/plugin-yaml';
|
|
350
|
-
* import { defineConfig } from 'rolldown';
|
|
351
|
-
* import { withFilter } from 'rolldown/filter';
|
|
350
|
+
* import { defineConfig } from '@rollipop/rolldown';
|
|
351
|
+
* import { withFilter } from '@rollipop/rolldown/filter';
|
|
352
352
|
*
|
|
353
353
|
* export default defineConfig({
|
|
354
354
|
* plugins: [
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./shared/logging-BSNejiLS.mjs";
|
|
2
|
-
import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-
|
|
2
|
+
import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-B4LpBryx.mjs";
|
|
3
3
|
export { GetLogFilter, type RolldownLog, type RolldownLog as RollupLog, getLogFilter as default };
|
package/dist/get-log-filter.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```ts
|
|
7
|
-
* import { defineConfig } from 'rolldown';
|
|
8
|
-
* import { getLogFilter } from 'rolldown/getLogFilter';
|
|
7
|
+
* import { defineConfig } from '@rollipop/rolldown';
|
|
8
|
+
* import { getLogFilter } from '@rollipop/rolldown/getLogFilter';
|
|
9
9
|
*
|
|
10
10
|
* const logFilter = getLogFilter(['code:FOO', 'code:BAR']);
|
|
11
11
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-
|
|
2
|
+
import { H as PreRenderedChunk } from "./shared/binding-Cu-ojBng.mjs";
|
|
3
|
+
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-QGeJq1RS.mjs";
|
|
4
4
|
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-xKFuQo-G.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BomkWqGX.mjs";
|
|
3
|
+
import { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-BYPi8wdW.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-lvkmL-oD.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
6
6
|
import { isMainThread } from "node:worker_threads";
|
|
7
7
|
//#region src/setup.ts
|
|
@@ -19,7 +19,7 @@ if (isMainThread) {
|
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```js
|
|
22
|
-
* import { build } from 'rolldown';
|
|
22
|
+
* import { build } from '@rollipop/rolldown';
|
|
23
23
|
*
|
|
24
24
|
* const result = await build({
|
|
25
25
|
* input: 'src/main.js',
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-xKFuQo-G.mjs";
|
|
2
|
+
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-BYPi8wdW.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
5
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6
6
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
7
7
|
(async () => {
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
|
|
10
10
|
const definePluginImpl = (await import(pluginInfo.fileUrl)).default;
|
|
11
11
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
12
12
|
return {
|
|
13
13
|
index: pluginInfo.index,
|
|
14
14
|
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, [], []), [], () => {}, "info", false)
|
|
15
15
|
};
|
|
16
|
-
}))
|
|
16
|
+
}));
|
|
17
|
+
(0, import_binding.registerPlugins)(registryId, plugins);
|
|
17
18
|
parentPort.postMessage({ type: "success" });
|
|
18
19
|
} catch (error) {
|
|
19
20
|
parentPort.postMessage({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-QGeJq1RS.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-BeUE8K-J.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { P as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-Cu-ojBng.mjs";
|
|
2
|
+
import { P as BuiltinPlugin } from "./shared/define-config-QGeJq1RS.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-Cv3icXH8.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CxZ_9Mip.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-B1hVHeCp.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1579,6 +1579,8 @@ interface BindingEnhancedTransformOptions {
|
|
|
1579
1579
|
tsconfig?: boolean | BindingTsconfigRawOptions;
|
|
1580
1580
|
/** An input source map to collapse with the output source map. */
|
|
1581
1581
|
inputMap?: SourceMap;
|
|
1582
|
+
/** Experimental React Compiler transform. */
|
|
1583
|
+
reactCompiler?: OxcReactCompilerOptions;
|
|
1582
1584
|
}
|
|
1583
1585
|
/** Result of the enhanced transform API. */
|
|
1584
1586
|
interface BindingEnhancedTransformResult {
|
|
@@ -1923,6 +1925,8 @@ interface BindingViteTransformPluginConfig {
|
|
|
1923
1925
|
transformOptions?: TransformOptions;
|
|
1924
1926
|
yarnPnp?: boolean;
|
|
1925
1927
|
}
|
|
1928
|
+
declare function clearCache(): Promise<void>;
|
|
1929
|
+
declare function clearCacheById(id: string): Promise<void>;
|
|
1926
1930
|
interface ExternalMemoryStatus {
|
|
1927
1931
|
freed: boolean;
|
|
1928
1932
|
reason?: string;
|
|
@@ -1940,6 +1944,91 @@ interface NativeError {
|
|
|
1940
1944
|
/** Position in the source file in UTF-16 code units */
|
|
1941
1945
|
pos?: number;
|
|
1942
1946
|
}
|
|
1947
|
+
interface OxcReactCompilerDynamicGating {
|
|
1948
|
+
/** Module the gating import comes from. */
|
|
1949
|
+
source: string;
|
|
1950
|
+
}
|
|
1951
|
+
interface OxcReactCompilerGating {
|
|
1952
|
+
/** Module the gating import comes from. */
|
|
1953
|
+
source: string;
|
|
1954
|
+
/** Imported specifier used as the gate. */
|
|
1955
|
+
importSpecifierName: string;
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Options for the experimental React Compiler transform.
|
|
1959
|
+
*
|
|
1960
|
+
* @category Utilities
|
|
1961
|
+
*/
|
|
1962
|
+
interface OxcReactCompilerOptions {
|
|
1963
|
+
/** File patterns to compile. Empty means all files that enter the transform pipeline. */
|
|
1964
|
+
include?: Array<BindingStringOrRegex>;
|
|
1965
|
+
/** File patterns to skip. */
|
|
1966
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1967
|
+
/**
|
|
1968
|
+
* Which functions to compile.
|
|
1969
|
+
*
|
|
1970
|
+
* @default 'infer'
|
|
1971
|
+
*/
|
|
1972
|
+
compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all';
|
|
1973
|
+
/**
|
|
1974
|
+
* What to do when a function cannot be compiled.
|
|
1975
|
+
*
|
|
1976
|
+
* @default 'none'
|
|
1977
|
+
*/
|
|
1978
|
+
panicThreshold?: 'none' | 'critical_errors' | 'all_errors';
|
|
1979
|
+
/**
|
|
1980
|
+
* React runtime version target.
|
|
1981
|
+
*
|
|
1982
|
+
* @default '19'
|
|
1983
|
+
*/
|
|
1984
|
+
target?: '17' | '18' | '19';
|
|
1985
|
+
/**
|
|
1986
|
+
* Analyze and report diagnostics only; emit no transformed code.
|
|
1987
|
+
*
|
|
1988
|
+
* @default false
|
|
1989
|
+
*/
|
|
1990
|
+
noEmit?: boolean;
|
|
1991
|
+
/**
|
|
1992
|
+
* Compiler output mode.
|
|
1993
|
+
*
|
|
1994
|
+
* @default undefined
|
|
1995
|
+
*/
|
|
1996
|
+
outputMode?: 'client' | 'ssr' | 'lint';
|
|
1997
|
+
/**
|
|
1998
|
+
* Compile even functions marked with opt-out directives.
|
|
1999
|
+
*
|
|
2000
|
+
* @default false
|
|
2001
|
+
*/
|
|
2002
|
+
ignoreUseNoForget?: boolean;
|
|
2003
|
+
/**
|
|
2004
|
+
* Treat Flow suppression comments as opt-outs.
|
|
2005
|
+
*
|
|
2006
|
+
* @default true
|
|
2007
|
+
*/
|
|
2008
|
+
flowSuppressions?: boolean;
|
|
2009
|
+
/**
|
|
2010
|
+
* Enable `react-native-reanimated` support.
|
|
2011
|
+
*
|
|
2012
|
+
* @default false
|
|
2013
|
+
*/
|
|
2014
|
+
enableReanimated?: boolean;
|
|
2015
|
+
/**
|
|
2016
|
+
* Development mode.
|
|
2017
|
+
*
|
|
2018
|
+
* @default false
|
|
2019
|
+
*/
|
|
2020
|
+
isDev?: boolean;
|
|
2021
|
+
/** Source file name, used for the fast-refresh hash and in diagnostics. */
|
|
2022
|
+
filename?: string;
|
|
2023
|
+
/** ESLint rules whose suppressions opt a function out of compilation. */
|
|
2024
|
+
eslintSuppressionRules?: Array<string>;
|
|
2025
|
+
/** Extra directives that opt a function out of compilation. */
|
|
2026
|
+
customOptOutDirectives?: Array<string>;
|
|
2027
|
+
/** Also emit a gated version of each compiled function. */
|
|
2028
|
+
gating?: OxcReactCompilerGating;
|
|
2029
|
+
/** Dynamically-gated compilation. */
|
|
2030
|
+
dynamicGating?: OxcReactCompilerDynamicGating;
|
|
2031
|
+
}
|
|
1943
2032
|
interface PreRenderedChunk {
|
|
1944
2033
|
/** The name of this chunk, which is used in naming patterns. */
|
|
1945
2034
|
name: string;
|
|
@@ -1958,4 +2047,4 @@ interface ViteImportGlobMeta {
|
|
|
1958
2047
|
isSubImportsPattern?: boolean;
|
|
1959
2048
|
}
|
|
1960
2049
|
//#endregion
|
|
1961
|
-
export { BindingViteTransformPluginConfig as A,
|
|
2050
|
+
export { moduleRunnerTransform as $, BindingViteTransformPluginConfig as A, ParseResult as B, BindingViteImportGlobPluginConfig as C, BindingViteReactRefreshWrapperPluginConfig as D, BindingViteModulePreloadPolyfillPluginConfig as E, JsxOptions as F, ResolverFactory as G, PreRenderedChunk as H, MinifyOptions as I, TsconfigCache as J, SourceMap as K, MinifyResult as L, ExternalMemoryStatus as M, IsolatedDeclarationsOptions as N, BindingViteReporterPluginConfig as O, IsolatedDeclarationsResult as P, isolatedDeclarationSync as Q, NapiResolveOptions as R, BindingViteDynamicImportVarsPluginConfig as S, BindingViteManifestPluginConfig as T, ReactRefreshOptions as U, ParserOptions as V, ResolveResult as W, clearCacheById as X, clearCache as Y, isolatedDeclaration as Z, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingTsconfigResult as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingRollipopReactRefreshWrapperPluginConfig as g, BindingRollipopReactNativeTransformResult as h, BindingClientHmrUpdate as i, BindingWatcherBundler as j, BindingViteResolvePluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, TransformOptions as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigCompilerOptions as v, BindingViteJsonPluginConfig as w, BindingViteBuildImportAnalysisPluginConfig as x, BindingTsconfigRawOptions as y, OxcReactCompilerOptions as z };
|
|
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
103
103
|
try {
|
|
104
104
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
105
105
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "1.0.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
107
|
return binding;
|
|
108
108
|
} catch (e) {
|
|
109
109
|
loadErrors.push(e);
|
|
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
117
|
try {
|
|
118
118
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
119
119
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
120
|
-
if (bindingPackageVersion !== "1.0.
|
|
120
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
121
|
return binding;
|
|
122
122
|
} catch (e) {
|
|
123
123
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
132
132
|
try {
|
|
133
133
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
134
134
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "1.0.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
146
146
|
try {
|
|
147
147
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
148
148
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "1.0.
|
|
149
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
161
161
|
try {
|
|
162
162
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
163
163
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "1.0.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
177
177
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
178
|
-
if (bindingPackageVersion !== "1.0.
|
|
178
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
179
179
|
return binding;
|
|
180
180
|
} catch (e) {
|
|
181
181
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
190
|
try {
|
|
191
191
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
192
192
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "1.0.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
204
204
|
try {
|
|
205
205
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
206
206
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "1.0.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
208
|
return binding;
|
|
209
209
|
} catch (e) {
|
|
210
210
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
220
220
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "1.0.
|
|
221
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
try {
|
|
234
234
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
235
235
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "1.0.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
237
|
return binding;
|
|
238
238
|
} catch (e) {
|
|
239
239
|
loadErrors.push(e);
|
|
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
247
247
|
try {
|
|
248
248
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
249
249
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
250
|
-
if (bindingPackageVersion !== "1.0.
|
|
250
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
251
251
|
return binding;
|
|
252
252
|
} catch (e) {
|
|
253
253
|
loadErrors.push(e);
|
|
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
264
264
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "1.0.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
266
|
return binding;
|
|
267
267
|
} catch (e) {
|
|
268
268
|
loadErrors.push(e);
|
|
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
276
276
|
try {
|
|
277
277
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
278
278
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
279
|
-
if (bindingPackageVersion !== "1.0.
|
|
279
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
280
280
|
return binding;
|
|
281
281
|
} catch (e) {
|
|
282
282
|
loadErrors.push(e);
|
|
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
293
293
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "1.0.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
295
|
return binding;
|
|
296
296
|
} catch (e) {
|
|
297
297
|
loadErrors.push(e);
|
|
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
307
307
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
308
|
-
if (bindingPackageVersion !== "1.0.
|
|
308
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
309
309
|
return binding;
|
|
310
310
|
} catch (e) {
|
|
311
311
|
loadErrors.push(e);
|
|
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
322
322
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "1.0.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
324
|
return binding;
|
|
325
325
|
} catch (e) {
|
|
326
326
|
loadErrors.push(e);
|
|
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
334
334
|
try {
|
|
335
335
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
336
336
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "1.0.
|
|
337
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
338
|
return binding;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
loadErrors.push(e);
|
|
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
349
349
|
try {
|
|
350
350
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
351
351
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "1.0.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
353
|
return binding;
|
|
354
354
|
} catch (e) {
|
|
355
355
|
loadErrors.push(e);
|
|
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
363
363
|
try {
|
|
364
364
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
365
365
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
366
|
-
if (bindingPackageVersion !== "1.0.
|
|
366
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
367
367
|
return binding;
|
|
368
368
|
} catch (e) {
|
|
369
369
|
loadErrors.push(e);
|
|
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
378
378
|
try {
|
|
379
379
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
380
380
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "1.0.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
382
|
return binding;
|
|
383
383
|
} catch (e) {
|
|
384
384
|
loadErrors.push(e);
|
|
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
392
392
|
try {
|
|
393
393
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
394
394
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
395
|
-
if (bindingPackageVersion !== "1.0.
|
|
395
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
396
|
return binding;
|
|
397
397
|
} catch (e) {
|
|
398
398
|
loadErrors.push(e);
|
|
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
409
409
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "1.0.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
411
|
return binding;
|
|
412
412
|
} catch (e) {
|
|
413
413
|
loadErrors.push(e);
|
|
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
423
423
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
424
|
-
if (bindingPackageVersion !== "1.0.
|
|
424
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
425
425
|
return binding;
|
|
426
426
|
} catch (e) {
|
|
427
427
|
loadErrors.push(e);
|
|
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
try {
|
|
437
437
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
438
438
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "1.0.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
440
|
return binding;
|
|
441
441
|
} catch (e) {
|
|
442
442
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
450
450
|
try {
|
|
451
451
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
452
452
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "1.0.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
return binding;
|
|
455
455
|
} catch (e) {
|
|
456
456
|
loadErrors.push(e);
|
|
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
464
464
|
try {
|
|
465
465
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
466
466
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
467
|
-
if (bindingPackageVersion !== "1.0.
|
|
467
|
+
if (bindingPackageVersion !== "1.0.21" && 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.21 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
468
468
|
return binding;
|
|
469
469
|
} catch (e) {
|
|
470
470
|
loadErrors.push(e);
|
|
@@ -564,7 +564,6 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
564
564
|
module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
|
|
565
565
|
module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
|
|
566
566
|
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
567
|
-
module.exports.ScheduledBuild = nativeBinding.ScheduledBuild;
|
|
568
567
|
module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
|
|
569
568
|
module.exports.TsconfigCache = nativeBinding.TsconfigCache;
|
|
570
569
|
module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
|
|
@@ -579,6 +578,8 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
579
578
|
module.exports.BindingRollipopReactNativeModuleType = nativeBinding.BindingRollipopReactNativeModuleType;
|
|
580
579
|
module.exports.BindingRollipopReactNativeReactRuntime = nativeBinding.BindingRollipopReactNativeReactRuntime;
|
|
581
580
|
module.exports.BindingRollipopReactNativeRuntimeTarget = nativeBinding.BindingRollipopReactNativeRuntimeTarget;
|
|
581
|
+
module.exports.clearCache = nativeBinding.clearCache;
|
|
582
|
+
module.exports.clearCacheById = nativeBinding.clearCacheById;
|
|
582
583
|
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
583
584
|
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
584
585
|
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
package/dist/shared/{bindingify-input-options-CWzXbE4Z.mjs → bindingify-input-options-BYPi8wdW.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-xKFuQo-G.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CxZ_9Mip.mjs";
|
|
4
4
|
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CoQm4NHO.mjs";
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-xIBfzJhs.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@rolldown/pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.
|
|
11
|
+
var version = "1.0.21";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/constants/version.ts
|
|
@@ -220,7 +220,7 @@ function bindingAssetSource(source) {
|
|
|
220
220
|
return { inner: source };
|
|
221
221
|
}
|
|
222
222
|
//#endregion
|
|
223
|
-
//#region \0@oxc-project+runtime@0.
|
|
223
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/decorate.js
|
|
224
224
|
function __decorate(decorators, target, key, desc) {
|
|
225
225
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
226
226
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1999,10 +1999,15 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1999
1999
|
const dropLabels = transform?.dropLabels;
|
|
2000
2000
|
let oxcTransformOptions;
|
|
2001
2001
|
if (transform) {
|
|
2002
|
-
const { define: _define, inject: _inject, dropLabels: _dropLabels, ...rest } = transform;
|
|
2003
|
-
if (Object.keys(rest).length > 0) {
|
|
2002
|
+
const { define: _define, inject: _inject, dropLabels: _dropLabels, reactCompiler, ...rest } = transform;
|
|
2003
|
+
if (Object.keys(rest).length > 0 || reactCompiler != null) {
|
|
2004
2004
|
if (rest.jsx === false) rest.jsx = "disable";
|
|
2005
|
-
|
|
2005
|
+
const jsxRefreshFilters = normalizeJsxRefreshFilters(rest);
|
|
2006
|
+
oxcTransformOptions = {
|
|
2007
|
+
options: rest,
|
|
2008
|
+
...reactCompiler != null ? { reactCompiler } : {},
|
|
2009
|
+
...jsxRefreshFilters
|
|
2010
|
+
};
|
|
2006
2011
|
}
|
|
2007
2012
|
}
|
|
2008
2013
|
return {
|
|
@@ -2012,6 +2017,21 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
2012
2017
|
oxcTransformOptions
|
|
2013
2018
|
};
|
|
2014
2019
|
}
|
|
2020
|
+
function normalizeJsxRefreshFilters(transformOptions) {
|
|
2021
|
+
const jsx = transformOptions.jsx;
|
|
2022
|
+
if (jsx == null || typeof jsx !== "object") return {};
|
|
2023
|
+
const refresh = jsx.refresh;
|
|
2024
|
+
if (refresh == null || typeof refresh !== "object") return {};
|
|
2025
|
+
const { include, exclude, ...oxcRefreshOptions } = refresh;
|
|
2026
|
+
transformOptions.jsx = {
|
|
2027
|
+
...jsx,
|
|
2028
|
+
refresh: oxcRefreshOptions
|
|
2029
|
+
};
|
|
2030
|
+
return {
|
|
2031
|
+
jsxRefreshInclude: normalizedStringOrRegex(include),
|
|
2032
|
+
jsxRefreshExclude: normalizedStringOrRegex(exclude)
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2015
2035
|
//#endregion
|
|
2016
2036
|
//#region src/utils/bindingify-input-options.ts
|
|
2017
2037
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CxZ_9Mip.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as BindingViteImportGlobPluginConfig, D as BindingViteReactRefreshWrapperPluginConfig, E as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReporterPluginConfig, S as BindingViteDynamicImportVarsPluginConfig, k as BindingViteResolvePluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteJsonPluginConfig, x as BindingViteBuildImportAnalysisPluginConfig } from "./binding-
|
|
2
|
-
import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-
|
|
1
|
+
import { C as BindingViteImportGlobPluginConfig, D as BindingViteReactRefreshWrapperPluginConfig, E as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReporterPluginConfig, S as BindingViteDynamicImportVarsPluginConfig, k as BindingViteResolvePluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteJsonPluginConfig, x as BindingViteBuildImportAnalysisPluginConfig } from "./binding-Cu-ojBng.mjs";
|
|
2
|
+
import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-QGeJq1RS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { F as JsxOptions$1, H as PreRenderedChunk, I as MinifyOptions$1, M as ExternalMemoryStatus, U as ReactRefreshOptions$1, V as ParserOptions, _ as BindingTransformHookExtraArgs, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, j as BindingWatcherBundler, p as BindingRenderedChunk, q as TransformOptions$1, t as BindingBuiltinPluginName, u as BindingMagicString, z as OxcReactCompilerOptions } from "./binding-Cu-ojBng.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -1304,7 +1304,7 @@ declare class RolldownBuild {
|
|
|
1304
1304
|
*
|
|
1305
1305
|
* @example
|
|
1306
1306
|
* ```js
|
|
1307
|
-
* import { rolldown } from 'rolldown';
|
|
1307
|
+
* import { rolldown } from '@rollipop/rolldown';
|
|
1308
1308
|
*
|
|
1309
1309
|
* {
|
|
1310
1310
|
* using bundle = await rolldown({ input: 'src/main.js' });
|
|
@@ -1335,7 +1335,7 @@ declare class RolldownBuild {
|
|
|
1335
1335
|
*
|
|
1336
1336
|
* @example
|
|
1337
1337
|
* ```js
|
|
1338
|
-
* import { rolldown } from 'rolldown';
|
|
1338
|
+
* import { rolldown } from '@rollipop/rolldown';
|
|
1339
1339
|
*
|
|
1340
1340
|
* let bundle, failed = false;
|
|
1341
1341
|
* try {
|
|
@@ -1445,7 +1445,7 @@ interface RolldownWatcher {
|
|
|
1445
1445
|
*
|
|
1446
1446
|
* @example
|
|
1447
1447
|
* ```js
|
|
1448
|
-
* import { watch } from 'rolldown';
|
|
1448
|
+
* import { watch } from '@rollipop/rolldown';
|
|
1449
1449
|
*
|
|
1450
1450
|
* const watcher = watch({ /* ... *\/ });
|
|
1451
1451
|
* watcher.on('event', (event) => {
|
|
@@ -1659,6 +1659,22 @@ interface ChecksOptions {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/options/transform-options.d.ts
|
|
1662
|
+
interface ReactRefreshOptions extends ReactRefreshOptions$1 {
|
|
1663
|
+
/**
|
|
1664
|
+
* File patterns to transform. Empty means all files that enter the transform pipeline.
|
|
1665
|
+
*/
|
|
1666
|
+
include?: StringOrRegExp | StringOrRegExp[];
|
|
1667
|
+
/**
|
|
1668
|
+
* File patterns to skip.
|
|
1669
|
+
*/
|
|
1670
|
+
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
1671
|
+
}
|
|
1672
|
+
interface JsxOptions extends Omit<JsxOptions$1, "refresh"> {
|
|
1673
|
+
/**
|
|
1674
|
+
* Enable React Fast Refresh.
|
|
1675
|
+
*/
|
|
1676
|
+
refresh?: boolean | ReactRefreshOptions;
|
|
1677
|
+
}
|
|
1662
1678
|
interface TransformOptions extends Omit<TransformOptions$1, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject" | "jsx"> {
|
|
1663
1679
|
/**
|
|
1664
1680
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1769,6 +1785,7 @@ interface TransformOptions extends Omit<TransformOptions$1, "sourceType" | "lang
|
|
|
1769
1785
|
* - If set to `'preserve'`, JSX syntax will be preserved as-is.
|
|
1770
1786
|
*/
|
|
1771
1787
|
jsx?: false | "react" | "react-jsx" | "preserve" | JsxOptions;
|
|
1788
|
+
reactCompiler?: OxcReactCompilerOptions;
|
|
1772
1789
|
}
|
|
1773
1790
|
//#endregion
|
|
1774
1791
|
//#region src/options/normalized-input-options.d.ts
|
|
@@ -2626,8 +2643,8 @@ type OverrideFilterObject = {
|
|
|
2626
2643
|
* @example
|
|
2627
2644
|
* ```ts
|
|
2628
2645
|
* import yaml from '@rollup/plugin-yaml';
|
|
2629
|
-
* import { defineConfig } from 'rolldown';
|
|
2630
|
-
* import { withFilter } from 'rolldown/filter';
|
|
2646
|
+
* import { defineConfig } from '@rollipop/rolldown';
|
|
2647
|
+
* import { withFilter } from '@rollipop/rolldown/filter';
|
|
2631
2648
|
*
|
|
2632
2649
|
* export default defineConfig({
|
|
2633
2650
|
* plugins: [
|
|
@@ -3370,7 +3387,7 @@ interface InputOptions {
|
|
|
3370
3387
|
*
|
|
3371
3388
|
* @example
|
|
3372
3389
|
* ```js
|
|
3373
|
-
* import { defineConfig } from 'rolldown'
|
|
3390
|
+
* import { defineConfig } from '@rollipop/rolldown'
|
|
3374
3391
|
*
|
|
3375
3392
|
* export default defineConfig({
|
|
3376
3393
|
* plugins: [
|
|
@@ -3574,7 +3591,7 @@ interface InputOptions {
|
|
|
3574
3591
|
*
|
|
3575
3592
|
* @example
|
|
3576
3593
|
* ```js
|
|
3577
|
-
* import { defineConfig } from 'rolldown'
|
|
3594
|
+
* import { defineConfig } from '@rollipop/rolldown'
|
|
3578
3595
|
*
|
|
3579
3596
|
* export default defineConfig({
|
|
3580
3597
|
* moduleTypes: {
|
|
@@ -3775,7 +3792,7 @@ interface InputOptions {
|
|
|
3775
3792
|
* describing your use case so we can address it before the option is gone.
|
|
3776
3793
|
*
|
|
3777
3794
|
* @see {@link https://rolldown.rs/in-depth/lazy-barrel-optimization | Lazy Barrel Documentation}
|
|
3778
|
-
* @default
|
|
3795
|
+
* @default false
|
|
3779
3796
|
*/
|
|
3780
3797
|
lazyBarrel?: boolean;
|
|
3781
3798
|
};
|
|
@@ -3891,7 +3908,7 @@ type RolldownOptionsFunction = (commandLineArguments: Record<string, any>) => Ma
|
|
|
3891
3908
|
*
|
|
3892
3909
|
* @example
|
|
3893
3910
|
* ```js [rolldown.config.js]
|
|
3894
|
-
* import { defineConfig } from 'rolldown';
|
|
3911
|
+
* import { defineConfig } from '@rollipop/rolldown';
|
|
3895
3912
|
*
|
|
3896
3913
|
* export default defineConfig({
|
|
3897
3914
|
* input: 'src/main.js',
|
|
@@ -13,8 +13,8 @@ type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* import { defineConfig } from 'rolldown';
|
|
17
|
-
* import { getLogFilter } from 'rolldown/getLogFilter';
|
|
16
|
+
* import { defineConfig } from '@rollipop/rolldown';
|
|
17
|
+
* import { getLogFilter } from '@rollipop/rolldown/getLogFilter';
|
|
18
18
|
*
|
|
19
19
|
* const logFilter = getLogFilter(['code:FOO', 'code:BAR']);
|
|
20
20
|
*
|
|
@@ -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-xKFuQo-G.mjs";
|
|
2
2
|
import { c as logPluginError, n as error } from "./logs-aMKUxRpj.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-xKFuQo-G.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.138.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-xKFuQo-G.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-xIBfzJhs.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -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-xKFuQo-G.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { a as transformModuleInfo, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-CxZ_9Mip.mjs";
|
|
4
|
+
import { a as transformModuleInfo, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-BYPi8wdW.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-xIBfzJhs.mjs";
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
9
9
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -1461,7 +1461,13 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1461
1461
|
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1462
1462
|
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1463
1463
|
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1464
|
-
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */
|
|
1464
|
+
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1465
|
+
refreshReg: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1466
|
+
refreshSig: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1467
|
+
emitFullSignatures: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1468
|
+
include: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)])),
|
|
1469
|
+
exclude: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)]))
|
|
1470
|
+
})])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1465
1471
|
})
|
|
1466
1472
|
])),
|
|
1467
1473
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
@@ -1471,7 +1477,8 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1471
1477
|
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1472
1478
|
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1473
1479
|
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1474
|
-
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1480
|
+
})), /* @__PURE__ */ description("Third-party plugins to use")),
|
|
1481
|
+
reactCompiler: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ any()), /* @__PURE__ */ description("Enable React Compiler"))
|
|
1475
1482
|
});
|
|
1476
1483
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1477
1484
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
@@ -3221,7 +3228,7 @@ var RolldownBuild = class RolldownBuild {
|
|
|
3221
3228
|
*
|
|
3222
3229
|
* @example
|
|
3223
3230
|
* ```js
|
|
3224
|
-
* import { rolldown } from 'rolldown';
|
|
3231
|
+
* import { rolldown } from '@rollipop/rolldown';
|
|
3225
3232
|
*
|
|
3226
3233
|
* {
|
|
3227
3234
|
* using bundle = await rolldown({ input: 'src/main.js' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-CJYbdPdc.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -10,7 +10,7 @@ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./ro
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```js
|
|
13
|
-
* import { rolldown } from 'rolldown';
|
|
13
|
+
* import { rolldown } from '@rollipop/rolldown';
|
|
14
14
|
*
|
|
15
15
|
* let bundle, failed = false;
|
|
16
16
|
* try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
2
|
-
import { B as
|
|
2
|
+
import { B as ParseResult$1, I as MinifyOptions$1, J as TsconfigCache$1, K as SourceMap, L as MinifyResult$1, V as ParserOptions$1, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult } from "./binding-Cu-ojBng.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
5
|
/**
|
|
@@ -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-xKFuQo-G.mjs";
|
|
2
2
|
import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
|
|
3
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BYPi8wdW.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-CoQm4NHO.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CJYbdPdc.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-xIBfzJhs.mjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
|
@@ -348,7 +348,7 @@ function warnMultiplePollingOptions(bundlerOptions) {
|
|
|
348
348
|
*
|
|
349
349
|
* @example
|
|
350
350
|
* ```js
|
|
351
|
-
* import { watch } from 'rolldown';
|
|
351
|
+
* import { watch } from '@rollipop/rolldown';
|
|
352
352
|
*
|
|
353
353
|
* const watcher = watch({ /* ... *\/ });
|
|
354
354
|
* watcher.on('event', (event) => {
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-
|
|
2
|
-
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-
|
|
1
|
+
import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-Cu-ojBng.mjs";
|
|
2
|
+
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-C91OGt-e.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
6
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.138.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
7
7
|
interface VisitorObject$1 {
|
|
8
8
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
9
9
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
|
@@ -349,8 +349,8 @@ type VisitorObject = VisitorObject$1;
|
|
|
349
349
|
*
|
|
350
350
|
* @example
|
|
351
351
|
* ```ts
|
|
352
|
-
* import { Visitor } from 'rolldown/utils';
|
|
353
|
-
* import { parseSync } from 'rolldown/utils';
|
|
352
|
+
* import { Visitor } from '@rollipop/rolldown/utils';
|
|
353
|
+
* import { parseSync } from '@rollipop/rolldown/utils';
|
|
354
354
|
*
|
|
355
355
|
* const result = parseSync(...);
|
|
356
356
|
* const visitor = new Visitor({
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-BeUE8K-J.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-lsIXlxa6.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.138.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.138.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.138.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|
|
@@ -2380,8 +2380,8 @@ const mergers = [
|
|
|
2380
2380
|
*
|
|
2381
2381
|
* @example
|
|
2382
2382
|
* ```ts
|
|
2383
|
-
* import { Visitor } from 'rolldown/utils';
|
|
2384
|
-
* import { parseSync } from 'rolldown/utils';
|
|
2383
|
+
* import { Visitor } from '@rollipop/rolldown/utils';
|
|
2384
|
+
* import { parseSync } from '@rollipop/rolldown/utils';
|
|
2385
2385
|
*
|
|
2386
2386
|
* const result = parseSync(...);
|
|
2387
2387
|
* const visitor = new Visitor({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollipop/rolldown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@oxc-project/types": "=0.
|
|
56
|
+
"@oxc-project/types": "=0.138.0",
|
|
57
57
|
"@rolldown/pluginutils": "^1.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"consola": "^3.4.2",
|
|
67
67
|
"execa": "^9.2.0",
|
|
68
68
|
"glob": "^13.0.0",
|
|
69
|
-
"oxc-parser": "=0.
|
|
69
|
+
"oxc-parser": "=0.138.0",
|
|
70
70
|
"pathe": "^2.0.3",
|
|
71
71
|
"remeda": "^2.34.1",
|
|
72
|
-
"rolldown": "1.1.
|
|
72
|
+
"rolldown": "1.1.4",
|
|
73
73
|
"rolldown-plugin-dts": "^0.26.0",
|
|
74
74
|
"rollup": "^4.60.4",
|
|
75
75
|
"signal-exit": "4.1.0",
|
|
76
76
|
"source-map": "0.7.6",
|
|
77
77
|
"typescript": "^6.0.0",
|
|
78
78
|
"valibot": "1.4.1",
|
|
79
|
-
"@rollipop/rolldown": "1.0.
|
|
79
|
+
"@rollipop/rolldown": "1.0.21"
|
|
80
80
|
},
|
|
81
81
|
"napi": {
|
|
82
82
|
"binaryName": "rolldown-binding",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
"node": "^20.19.0 || >=22.12.0"
|
|
105
105
|
},
|
|
106
106
|
"optionalDependencies": {
|
|
107
|
-
"@rollipop/rolldown-binding-darwin-x64": "1.0.
|
|
108
|
-
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.
|
|
109
|
-
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.
|
|
110
|
-
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.
|
|
111
|
-
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.
|
|
112
|
-
"@rollipop/rolldown-binding-darwin-arm64": "1.0.
|
|
113
|
-
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.
|
|
107
|
+
"@rollipop/rolldown-binding-darwin-x64": "1.0.21",
|
|
108
|
+
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.21",
|
|
109
|
+
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.21",
|
|
110
|
+
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.21",
|
|
111
|
+
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.21",
|
|
112
|
+
"@rollipop/rolldown-binding-darwin-arm64": "1.0.21",
|
|
113
|
+
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.21"
|
|
114
114
|
},
|
|
115
115
|
"scripts": {
|
|
116
116
|
"# Scrips for binding #": "_",
|