rolldown 0.13.2-snapshot-c19f7b8-20241020003530 → 0.13.2-snapshot-d822812-20241022003358
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/cjs/cli.cjs +13 -3
- package/dist/cjs/experimental-index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +13 -3
- package/dist/esm/experimental-index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/rolldown-binding.wasi.cjs +67 -65
- package/dist/shared/{src_index-w33O5rvI.cjs → src_index-Qsxg5EaF.cjs} +21 -5
- package/dist/shared/{src_index-qHSdyVE7.mjs → src_index-r1ytqDA4.mjs} +21 -5
- package/dist/types/binding.d.ts +12 -1
- package/dist/types/cli/arguments/schema.d.ts +31 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/options/input-options.d.ts +73 -1
- package/dist/types/options/watch-option.d.ts +5 -0
- package/dist/types/rolldown-build.d.ts +1 -1
- package/dist/types/rolldown.d.ts +2 -1
- package/package.json +14 -14
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-
|
|
4
|
+
const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-Qsxg5EaF.cjs");
|
|
5
5
|
const { createConsola } = require("../shared/consola.36c0034f-HcmWcfPe.cjs");
|
|
6
6
|
const { default: nodePath } = __toESM(require("node:path"));
|
|
7
7
|
const { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$2, z, z: z$1, z: z$2, z: z$3 } = __toESM(require("zod"));
|
|
@@ -1327,6 +1327,14 @@ const jsxOptionsSchema = z$2.strictObject({
|
|
|
1327
1327
|
refresh: ((z$2.boolean()).describe("React refresh transformation")).optional(),
|
|
1328
1328
|
development: ((z$2.boolean()).describe("Development specific information")).optional()
|
|
1329
1329
|
});
|
|
1330
|
+
const watchOptionsSchema = z$2.strictObject({
|
|
1331
|
+
skipWrite: ((z$2.boolean()).describe("Skip the bundle.write() step")).optional(),
|
|
1332
|
+
notify: ((z$2.strictObject({
|
|
1333
|
+
pollInterval: (z$2.number()).optional(),
|
|
1334
|
+
compareContents: (z$2.boolean()).optional()
|
|
1335
|
+
})).describe("Notify options")).optional(),
|
|
1336
|
+
chokidar: (z$2.any()).optional()
|
|
1337
|
+
});
|
|
1330
1338
|
const inputOptionsSchema = z$2.strictObject({
|
|
1331
1339
|
input: inputOptionSchema.optional(),
|
|
1332
1340
|
plugins: ((phantom()).array()).optional(),
|
|
@@ -1360,7 +1368,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1360
1368
|
define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
|
|
1361
1369
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1362
1370
|
profilerNames: (z$2.boolean()).optional(),
|
|
1363
|
-
jsx: jsxOptionsSchema.optional()
|
|
1371
|
+
jsx: jsxOptionsSchema.optional(),
|
|
1372
|
+
watch: watchOptionsSchema.optional()
|
|
1364
1373
|
});
|
|
1365
1374
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1366
1375
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1373,7 +1382,8 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
|
1373
1382
|
onLog: true,
|
|
1374
1383
|
resolve: true,
|
|
1375
1384
|
experimental: true,
|
|
1376
|
-
profilerNames: true
|
|
1385
|
+
profilerNames: true,
|
|
1386
|
+
watch: true
|
|
1377
1387
|
});
|
|
1378
1388
|
|
|
1379
1389
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-
|
|
4
|
+
const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-Qsxg5EaF.cjs");
|
|
5
5
|
const { pathToFileURL } = __toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-
|
|
3
|
+
const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-Qsxg5EaF.cjs");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
6
|
exports.VERSION = VERSION;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
|
|
4
|
-
const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-
|
|
4
|
+
const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-Qsxg5EaF.cjs");
|
|
5
5
|
const { parentPort, workerData } = __toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-
|
|
3
|
+
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-r1ytqDA4.mjs";
|
|
4
4
|
import { createConsola } from "../shared/consola.36c0034f-Xyw7SC_7.mjs";
|
|
5
5
|
import { default as nodePath } from "node:path";
|
|
6
6
|
import { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$2, z, z as z$1, z as z$2, z as z$3 } from "zod";
|
|
@@ -1326,6 +1326,14 @@ const jsxOptionsSchema = z$2.strictObject({
|
|
|
1326
1326
|
refresh: ((z$2.boolean()).describe("React refresh transformation")).optional(),
|
|
1327
1327
|
development: ((z$2.boolean()).describe("Development specific information")).optional()
|
|
1328
1328
|
});
|
|
1329
|
+
const watchOptionsSchema = z$2.strictObject({
|
|
1330
|
+
skipWrite: ((z$2.boolean()).describe("Skip the bundle.write() step")).optional(),
|
|
1331
|
+
notify: ((z$2.strictObject({
|
|
1332
|
+
pollInterval: (z$2.number()).optional(),
|
|
1333
|
+
compareContents: (z$2.boolean()).optional()
|
|
1334
|
+
})).describe("Notify options")).optional(),
|
|
1335
|
+
chokidar: (z$2.any()).optional()
|
|
1336
|
+
});
|
|
1329
1337
|
const inputOptionsSchema = z$2.strictObject({
|
|
1330
1338
|
input: inputOptionSchema.optional(),
|
|
1331
1339
|
plugins: ((phantom()).array()).optional(),
|
|
@@ -1359,7 +1367,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1359
1367
|
define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
|
|
1360
1368
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1361
1369
|
profilerNames: (z$2.boolean()).optional(),
|
|
1362
|
-
jsx: jsxOptionsSchema.optional()
|
|
1370
|
+
jsx: jsxOptionsSchema.optional(),
|
|
1371
|
+
watch: watchOptionsSchema.optional()
|
|
1363
1372
|
});
|
|
1364
1373
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1365
1374
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1372,7 +1381,8 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
|
1372
1381
|
onLog: true,
|
|
1373
1382
|
resolve: true,
|
|
1374
1383
|
experimental: true,
|
|
1375
|
-
profilerNames: true
|
|
1384
|
+
profilerNames: true,
|
|
1385
|
+
watch: true
|
|
1376
1386
|
});
|
|
1377
1387
|
|
|
1378
1388
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-
|
|
3
|
+
import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-r1ytqDA4.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
|
6
6
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-
|
|
3
|
+
import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-r1ytqDA4.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, defineConfig, rolldown, watch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __node_module__ from 'node:module';
|
|
2
2
|
const require = __node_module__.createRequire(import.meta.url)
|
|
3
|
-
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-
|
|
3
|
+
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-r1ytqDA4.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -100,71 +100,73 @@ function __napi_rs_initialize_modules(__napiInstance) {
|
|
|
100
100
|
__napiInstance.exports['__napi_register__BindingInjectImportNamed_struct_9']?.()
|
|
101
101
|
__napiInstance.exports['__napi_register__BindingInjectImportNamespace_struct_10']?.()
|
|
102
102
|
__napiInstance.exports['__napi_register__BindingInputItem_struct_11']?.()
|
|
103
|
-
__napiInstance.exports['
|
|
104
|
-
__napiInstance.exports['
|
|
105
|
-
__napiInstance.exports['
|
|
106
|
-
__napiInstance.exports['
|
|
107
|
-
__napiInstance.exports['
|
|
108
|
-
__napiInstance.exports['
|
|
109
|
-
__napiInstance.exports['
|
|
110
|
-
__napiInstance.exports['
|
|
111
|
-
__napiInstance.exports['
|
|
112
|
-
__napiInstance.exports['
|
|
113
|
-
__napiInstance.exports['
|
|
114
|
-
__napiInstance.exports['
|
|
115
|
-
__napiInstance.exports['
|
|
116
|
-
__napiInstance.exports['
|
|
117
|
-
__napiInstance.exports['
|
|
118
|
-
__napiInstance.exports['
|
|
119
|
-
__napiInstance.exports['
|
|
120
|
-
__napiInstance.exports['
|
|
121
|
-
__napiInstance.exports['
|
|
122
|
-
__napiInstance.exports['
|
|
123
|
-
__napiInstance.exports['
|
|
124
|
-
__napiInstance.exports['
|
|
125
|
-
__napiInstance.exports['
|
|
126
|
-
__napiInstance.exports['
|
|
127
|
-
__napiInstance.exports['
|
|
128
|
-
__napiInstance.exports['
|
|
129
|
-
__napiInstance.exports['
|
|
130
|
-
__napiInstance.exports['
|
|
131
|
-
__napiInstance.exports['
|
|
132
|
-
__napiInstance.exports['
|
|
133
|
-
__napiInstance.exports['
|
|
134
|
-
__napiInstance.exports['
|
|
135
|
-
__napiInstance.exports['
|
|
136
|
-
__napiInstance.exports['
|
|
137
|
-
__napiInstance.exports['
|
|
138
|
-
__napiInstance.exports['
|
|
139
|
-
__napiInstance.exports['
|
|
140
|
-
__napiInstance.exports['
|
|
141
|
-
__napiInstance.exports['
|
|
142
|
-
__napiInstance.exports['
|
|
143
|
-
__napiInstance.exports['
|
|
144
|
-
__napiInstance.exports['
|
|
145
|
-
__napiInstance.exports['
|
|
146
|
-
__napiInstance.exports['
|
|
147
|
-
__napiInstance.exports['
|
|
148
|
-
__napiInstance.exports['
|
|
149
|
-
__napiInstance.exports['
|
|
150
|
-
__napiInstance.exports['
|
|
151
|
-
__napiInstance.exports['
|
|
152
|
-
__napiInstance.exports['
|
|
153
|
-
__napiInstance.exports['
|
|
154
|
-
__napiInstance.exports['
|
|
155
|
-
__napiInstance.exports['
|
|
156
|
-
__napiInstance.exports['
|
|
157
|
-
__napiInstance.exports['
|
|
158
|
-
__napiInstance.exports['
|
|
159
|
-
__napiInstance.exports['
|
|
160
|
-
__napiInstance.exports['
|
|
161
|
-
__napiInstance.exports['
|
|
162
|
-
__napiInstance.exports['
|
|
163
|
-
__napiInstance.exports['
|
|
164
|
-
__napiInstance.exports['
|
|
165
|
-
__napiInstance.exports['
|
|
166
|
-
__napiInstance.exports['
|
|
167
|
-
__napiInstance.exports['
|
|
103
|
+
__napiInstance.exports['__napi_register__BindingWatchOption_struct_12']?.()
|
|
104
|
+
__napiInstance.exports['__napi_register__BindingNotifyOption_struct_13']?.()
|
|
105
|
+
__napiInstance.exports['__napi_register__BindingResolveOptions_struct_14']?.()
|
|
106
|
+
__napiInstance.exports['__napi_register__BindingTreeshake_struct_15']?.()
|
|
107
|
+
__napiInstance.exports['__napi_register__BindingInputOptions_struct_16']?.()
|
|
108
|
+
__napiInstance.exports['__napi_register__BindingAdvancedChunksOptions_struct_17']?.()
|
|
109
|
+
__napiInstance.exports['__napi_register__BindingMatchGroup_struct_18']?.()
|
|
110
|
+
__napiInstance.exports['__napi_register__BindingOutputOptions_struct_19']?.()
|
|
111
|
+
__napiInstance.exports['__napi_register__BindingPluginContext_struct_20']?.()
|
|
112
|
+
__napiInstance.exports['__napi_register__BindingPluginContext_impl_27']?.()
|
|
113
|
+
__napiInstance.exports['__napi_register__BindingPluginContextResolvedId_struct_28']?.()
|
|
114
|
+
__napiInstance.exports['__napi_register__BindingPluginOptions_struct_29']?.()
|
|
115
|
+
__napiInstance.exports['__napi_register__BindingPluginWithIndex_struct_30']?.()
|
|
116
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginContext_struct_31']?.()
|
|
117
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginContext_impl_33']?.()
|
|
118
|
+
__napiInstance.exports['__napi_register__BindingAssetSource_struct_34']?.()
|
|
119
|
+
__napiInstance.exports['__napi_register__BindingEmittedAsset_struct_35']?.()
|
|
120
|
+
__napiInstance.exports['__napi_register__BindingGeneralHookFilter_struct_36']?.()
|
|
121
|
+
__napiInstance.exports['__napi_register__BindingTransformHookFilter_struct_37']?.()
|
|
122
|
+
__napiInstance.exports['__napi_register__BindingHookLoadOutput_struct_38']?.()
|
|
123
|
+
__napiInstance.exports['__napi_register__BindingHookRenderChunkOutput_struct_39']?.()
|
|
124
|
+
__napiInstance.exports['__napi_register__BindingHookResolveIdExtraArgs_struct_40']?.()
|
|
125
|
+
__napiInstance.exports['__napi_register__BindingHookResolveIdOutput_struct_41']?.()
|
|
126
|
+
__napiInstance.exports['__napi_register__BindingHookSideEffects_42']?.()
|
|
127
|
+
__napiInstance.exports['__napi_register__BindingHookTransformOutput_struct_43']?.()
|
|
128
|
+
__napiInstance.exports['__napi_register__BindingStringOrRegex_struct_44']?.()
|
|
129
|
+
__napiInstance.exports['__napi_register__BindingPluginContextResolveOptions_struct_45']?.()
|
|
130
|
+
__napiInstance.exports['__napi_register__BindingTransformHookExtraArgs_struct_46']?.()
|
|
131
|
+
__napiInstance.exports['__napi_register__BindingBuiltinPlugin_struct_47']?.()
|
|
132
|
+
__napiInstance.exports['__napi_register__BindingBuiltinPluginName_48']?.()
|
|
133
|
+
__napiInstance.exports['__napi_register__BindingGlobImportPluginConfig_struct_49']?.()
|
|
134
|
+
__napiInstance.exports['__napi_register__BindingManifestPluginConfig_struct_50']?.()
|
|
135
|
+
__napiInstance.exports['__napi_register__BindingModulePreloadPolyfillPluginConfig_struct_51']?.()
|
|
136
|
+
__napiInstance.exports['__napi_register__BindingJsonPluginConfig_struct_52']?.()
|
|
137
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginConfig_struct_53']?.()
|
|
138
|
+
__napiInstance.exports['__napi_register__BindingAliasPluginConfig_struct_54']?.()
|
|
139
|
+
__napiInstance.exports['__napi_register__BindingAliasPluginAlias_struct_55']?.()
|
|
140
|
+
__napiInstance.exports['__napi_register__BindingBuildImportAnalysisPluginConfig_struct_56']?.()
|
|
141
|
+
__napiInstance.exports['__napi_register__BindingReplacePluginConfig_struct_57']?.()
|
|
142
|
+
__napiInstance.exports['__napi_register__BindingPluginOrder_58']?.()
|
|
143
|
+
__napiInstance.exports['__napi_register__BindingPluginHookMeta_struct_59']?.()
|
|
144
|
+
__napiInstance.exports['__napi_register__ParallelJsPluginRegistry_struct_60']?.()
|
|
145
|
+
__napiInstance.exports['__napi_register__ParallelJsPluginRegistry_impl_62']?.()
|
|
146
|
+
__napiInstance.exports['__napi_register__register_plugins_63']?.()
|
|
147
|
+
__napiInstance.exports['__napi_register__BindingLog_struct_64']?.()
|
|
148
|
+
__napiInstance.exports['__napi_register__BindingLogLevel_65']?.()
|
|
149
|
+
__napiInstance.exports['__napi_register__BindingModuleInfo_struct_66']?.()
|
|
150
|
+
__napiInstance.exports['__napi_register__BindingModuleInfo_impl_68']?.()
|
|
151
|
+
__napiInstance.exports['__napi_register__BindingOutputAsset_struct_69']?.()
|
|
152
|
+
__napiInstance.exports['__napi_register__BindingOutputAsset_impl_74']?.()
|
|
153
|
+
__napiInstance.exports['__napi_register__JsOutputAsset_struct_75']?.()
|
|
154
|
+
__napiInstance.exports['__napi_register__BindingOutputChunk_struct_76']?.()
|
|
155
|
+
__napiInstance.exports['__napi_register__BindingOutputChunk_impl_91']?.()
|
|
156
|
+
__napiInstance.exports['__napi_register__JsOutputChunk_struct_92']?.()
|
|
157
|
+
__napiInstance.exports['__napi_register__BindingOutputs_struct_93']?.()
|
|
158
|
+
__napiInstance.exports['__napi_register__BindingOutputs_impl_96']?.()
|
|
159
|
+
__napiInstance.exports['__napi_register__JsChangedOutputs_struct_97']?.()
|
|
160
|
+
__napiInstance.exports['__napi_register__PreRenderedChunk_struct_98']?.()
|
|
161
|
+
__napiInstance.exports['__napi_register__RenderedChunk_struct_99']?.()
|
|
162
|
+
__napiInstance.exports['__napi_register__BindingRenderedModule_struct_100']?.()
|
|
163
|
+
__napiInstance.exports['__napi_register__AliasItem_struct_101']?.()
|
|
164
|
+
__napiInstance.exports['__napi_register__ExtensionAliasItem_struct_102']?.()
|
|
165
|
+
__napiInstance.exports['__napi_register__BindingSourcemap_struct_103']?.()
|
|
166
|
+
__napiInstance.exports['__napi_register__BindingJsonSourcemap_struct_104']?.()
|
|
167
|
+
__napiInstance.exports['__napi_register__BindingWatcher_struct_105']?.()
|
|
168
|
+
__napiInstance.exports['__napi_register__BindingWatcher_impl_108']?.()
|
|
169
|
+
__napiInstance.exports['__napi_register__BindingWatcherEvent_109']?.()
|
|
168
170
|
}
|
|
169
171
|
module.exports.BindingLog = __napiModule.exports.BindingLog
|
|
170
172
|
module.exports.BindingModuleInfo = __napiModule.exports.BindingModuleInfo
|
|
@@ -937,7 +937,7 @@ class PluginContext extends MinimalPluginContext {
|
|
|
937
937
|
this.getModuleInfo = (id) => data.getModuleInfo(id, context);
|
|
938
938
|
this.getModuleIds = () => data.getModuleIds(context);
|
|
939
939
|
this.parse = unsupported("`PluginContext#parse` is not supported by rolldown.");
|
|
940
|
-
this.addWatchFile = ()
|
|
940
|
+
this.addWatchFile = context.addWatchFile.bind(context);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
|
|
@@ -1894,7 +1894,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1894
1894
|
disableLiveBindings: options.experimental?.disableLiveBindings
|
|
1895
1895
|
},
|
|
1896
1896
|
profilerNames: options?.profilerNames,
|
|
1897
|
-
jsx: bindingifyJsx(options.jsx)
|
|
1897
|
+
jsx: bindingifyJsx(options.jsx),
|
|
1898
|
+
watch: bindingifyWatch(options.watch)
|
|
1898
1899
|
};
|
|
1899
1900
|
}
|
|
1900
1901
|
function bindingifyLogLevel(logLevel) {
|
|
@@ -1933,6 +1934,21 @@ function bindingifyJsx(input) {
|
|
|
1933
1934
|
};
|
|
1934
1935
|
}
|
|
1935
1936
|
}
|
|
1937
|
+
function bindingifyWatch(watch$1) {
|
|
1938
|
+
if (watch$1) {
|
|
1939
|
+
let value = {skipWrite: watch$1.skipWrite};
|
|
1940
|
+
if (watch$1.notify) {
|
|
1941
|
+
value.notify = {
|
|
1942
|
+
pollInterval: watch$1.notify.pollInterval,
|
|
1943
|
+
compareContents: watch$1.notify.compareContents
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
if (watch$1.chokidar) {
|
|
1947
|
+
unsupported("The watch chokidar option is deprecated, please use notify options instead of it.");
|
|
1948
|
+
}
|
|
1949
|
+
return value;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1936
1952
|
|
|
1937
1953
|
//#endregion
|
|
1938
1954
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
@@ -2745,8 +2761,8 @@ class RolldownBuild {
|
|
|
2745
2761
|
await this.#stopWorkers?.();
|
|
2746
2762
|
await bundler.close();
|
|
2747
2763
|
}
|
|
2748
|
-
async watch() {
|
|
2749
|
-
const bundler = await this.#getBundler(
|
|
2764
|
+
async watch(outputOptions = {}) {
|
|
2765
|
+
const bundler = await this.#getBundler(outputOptions);
|
|
2750
2766
|
const bindingWatcher = await bundler.watch();
|
|
2751
2767
|
const watcher = new Watcher(bindingWatcher);
|
|
2752
2768
|
watcher.watch();
|
|
@@ -2760,7 +2776,7 @@ const rolldown = async (input) => {
|
|
|
2760
2776
|
return new RolldownBuild(input);
|
|
2761
2777
|
};
|
|
2762
2778
|
const watch = async (input) => {
|
|
2763
|
-
return (new RolldownBuild(input)).watch();
|
|
2779
|
+
return (new RolldownBuild(input)).watch(input.output);
|
|
2764
2780
|
};
|
|
2765
2781
|
const experimental_scan = async (input) => {
|
|
2766
2782
|
const { bundler: bundler, stopWorkers: stopWorkers } = await createBundler(input, {});
|
|
@@ -968,7 +968,7 @@ class PluginContext extends MinimalPluginContext {
|
|
|
968
968
|
this.getModuleInfo = (id) => data.getModuleInfo(id, context);
|
|
969
969
|
this.getModuleIds = () => data.getModuleIds(context);
|
|
970
970
|
this.parse = unsupported("`PluginContext#parse` is not supported by rolldown.");
|
|
971
|
-
this.addWatchFile = ()
|
|
971
|
+
this.addWatchFile = context.addWatchFile.bind(context);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
|
|
@@ -1925,7 +1925,8 @@ function bindingifyInputOptions(options, outputOptions) {
|
|
|
1925
1925
|
disableLiveBindings: options.experimental?.disableLiveBindings
|
|
1926
1926
|
},
|
|
1927
1927
|
profilerNames: options?.profilerNames,
|
|
1928
|
-
jsx: bindingifyJsx(options.jsx)
|
|
1928
|
+
jsx: bindingifyJsx(options.jsx),
|
|
1929
|
+
watch: bindingifyWatch(options.watch)
|
|
1929
1930
|
};
|
|
1930
1931
|
}
|
|
1931
1932
|
function bindingifyLogLevel(logLevel) {
|
|
@@ -1964,6 +1965,21 @@ function bindingifyJsx(input) {
|
|
|
1964
1965
|
};
|
|
1965
1966
|
}
|
|
1966
1967
|
}
|
|
1968
|
+
function bindingifyWatch(watch$1) {
|
|
1969
|
+
if (watch$1) {
|
|
1970
|
+
let value = {skipWrite: watch$1.skipWrite};
|
|
1971
|
+
if (watch$1.notify) {
|
|
1972
|
+
value.notify = {
|
|
1973
|
+
pollInterval: watch$1.notify.pollInterval,
|
|
1974
|
+
compareContents: watch$1.notify.compareContents
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
if (watch$1.chokidar) {
|
|
1978
|
+
unsupported("The watch chokidar option is deprecated, please use notify options instead of it.");
|
|
1979
|
+
}
|
|
1980
|
+
return value;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1967
1983
|
|
|
1968
1984
|
//#endregion
|
|
1969
1985
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
@@ -2776,8 +2792,8 @@ class RolldownBuild {
|
|
|
2776
2792
|
await this.#stopWorkers?.();
|
|
2777
2793
|
await bundler.close();
|
|
2778
2794
|
}
|
|
2779
|
-
async watch() {
|
|
2780
|
-
const bundler = await this.#getBundler(
|
|
2795
|
+
async watch(outputOptions = {}) {
|
|
2796
|
+
const bundler = await this.#getBundler(outputOptions);
|
|
2781
2797
|
const bindingWatcher = await bundler.watch();
|
|
2782
2798
|
const watcher = new Watcher(bindingWatcher);
|
|
2783
2799
|
watcher.watch();
|
|
@@ -2791,7 +2807,7 @@ const rolldown = async (input) => {
|
|
|
2791
2807
|
return new RolldownBuild(input);
|
|
2792
2808
|
};
|
|
2793
2809
|
const watch = async (input) => {
|
|
2794
|
-
return (new RolldownBuild(input)).watch();
|
|
2810
|
+
return (new RolldownBuild(input)).watch(input.output);
|
|
2795
2811
|
};
|
|
2796
2812
|
const experimental_scan = async (input) => {
|
|
2797
2813
|
const { bundler: bundler, stopWorkers: stopWorkers } = await createBundler(input, {});
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare class BindingPluginContext {
|
|
|
51
51
|
getFileName(referenceId: string): string
|
|
52
52
|
getModuleInfo(moduleId: string): BindingModuleInfo | null
|
|
53
53
|
getModuleIds(): Array<string> | null
|
|
54
|
+
addWatchFile(file: string): void
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
export declare class BindingTransformPluginContext {
|
|
@@ -235,6 +236,7 @@ export interface BindingInputOptions {
|
|
|
235
236
|
experimental?: BindingExperimentalOptions
|
|
236
237
|
profilerNames?: boolean
|
|
237
238
|
jsx?: JsxOptions
|
|
239
|
+
watch?: BindingWatchOption
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
export interface BindingJsonPluginConfig {
|
|
@@ -275,6 +277,11 @@ export interface BindingModulePreloadPolyfillPluginConfig {
|
|
|
275
277
|
skip?: boolean
|
|
276
278
|
}
|
|
277
279
|
|
|
280
|
+
export interface BindingNotifyOption {
|
|
281
|
+
pollInterval?: number
|
|
282
|
+
compareContents?: boolean
|
|
283
|
+
}
|
|
284
|
+
|
|
278
285
|
export interface BindingOutputOptions {
|
|
279
286
|
name?: string
|
|
280
287
|
entryFileNames?: string | ((chunk: PreRenderedChunk) => string)
|
|
@@ -443,6 +450,11 @@ export declare enum BindingWatcherEvent {
|
|
|
443
450
|
Change = 3
|
|
444
451
|
}
|
|
445
452
|
|
|
453
|
+
export interface BindingWatchOption {
|
|
454
|
+
skipWrite?: boolean
|
|
455
|
+
notify?: BindingNotifyOption
|
|
456
|
+
}
|
|
457
|
+
|
|
446
458
|
export interface Es2015Options {
|
|
447
459
|
/** Transform arrow functions into function expressions. */
|
|
448
460
|
arrowFunction?: ArrowFunctionsOptions
|
|
@@ -769,4 +781,3 @@ export interface TypeScriptOptions {
|
|
|
769
781
|
*/
|
|
770
782
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean
|
|
771
783
|
}
|
|
772
|
-
|
|
@@ -95,11 +95,39 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
95
95
|
refresh?: boolean | undefined;
|
|
96
96
|
development?: boolean | undefined;
|
|
97
97
|
}>>;
|
|
98
|
+
watch: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
skipWrite: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
notify: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
compareContents: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
}, "strict", z.ZodTypeAny, {
|
|
104
|
+
pollInterval?: number | undefined;
|
|
105
|
+
compareContents?: boolean | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
pollInterval?: number | undefined;
|
|
108
|
+
compareContents?: boolean | undefined;
|
|
109
|
+
}>>;
|
|
110
|
+
chokidar: z.ZodOptional<z.ZodAny>;
|
|
111
|
+
}, "strict", z.ZodTypeAny, {
|
|
112
|
+
skipWrite?: boolean | undefined;
|
|
113
|
+
notify?: {
|
|
114
|
+
pollInterval?: number | undefined;
|
|
115
|
+
compareContents?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
chokidar?: any;
|
|
118
|
+
}, {
|
|
119
|
+
skipWrite?: boolean | undefined;
|
|
120
|
+
notify?: {
|
|
121
|
+
pollInterval?: number | undefined;
|
|
122
|
+
compareContents?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
chokidar?: any;
|
|
125
|
+
}>>;
|
|
98
126
|
}, {
|
|
99
127
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
100
128
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
101
129
|
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
102
|
-
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{
|
|
130
|
+
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">>, Omit<z.objectUtil.extendShape<{
|
|
103
131
|
dir: z.ZodOptional<z.ZodString>;
|
|
104
132
|
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
105
133
|
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>;
|
|
@@ -198,6 +226,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
198
226
|
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
199
227
|
define?: Record<string, string> | undefined;
|
|
200
228
|
inject?: Record<string, string> | undefined;
|
|
229
|
+
watch?: boolean | undefined;
|
|
201
230
|
footer?: string | undefined;
|
|
202
231
|
banner?: string | undefined;
|
|
203
232
|
intro?: string | undefined;
|
|
@@ -221,7 +250,6 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
221
250
|
minShareCount?: number | undefined;
|
|
222
251
|
} | undefined;
|
|
223
252
|
version?: boolean | undefined;
|
|
224
|
-
watch?: boolean | undefined;
|
|
225
253
|
config?: string | boolean | undefined;
|
|
226
254
|
help?: boolean | undefined;
|
|
227
255
|
}, {
|
|
@@ -243,6 +271,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
243
271
|
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
244
272
|
define?: Record<string, string> | undefined;
|
|
245
273
|
inject?: Record<string, string> | undefined;
|
|
274
|
+
watch?: boolean | undefined;
|
|
246
275
|
footer?: string | undefined;
|
|
247
276
|
banner?: string | undefined;
|
|
248
277
|
intro?: string | undefined;
|
|
@@ -266,7 +295,6 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
266
295
|
minShareCount?: number | undefined;
|
|
267
296
|
} | undefined;
|
|
268
297
|
version?: boolean | undefined;
|
|
269
|
-
watch?: boolean | undefined;
|
|
270
298
|
config?: string | boolean | undefined;
|
|
271
299
|
help?: boolean | undefined;
|
|
272
300
|
}>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,8 +18,9 @@ import { ModuleInfo } from './types/module-info';
|
|
|
18
18
|
import { MinimalPluginContext } from './log/logger';
|
|
19
19
|
import { ExistingRawSourceMap, SourceMapInput } from './types/sourcemap';
|
|
20
20
|
import { OutputBundle } from './types/output-bundle';
|
|
21
|
+
import { WatchOptions } from './options/watch-option';
|
|
21
22
|
export { defineConfig, rolldown, watch };
|
|
22
23
|
export declare const VERSION: string;
|
|
23
|
-
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, };
|
|
24
|
+
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, };
|
|
24
25
|
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, };
|
|
25
26
|
export type { RollupError, RollupLog, LoggingFunction } from './rollup';
|
|
@@ -118,6 +118,34 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
118
118
|
refresh?: boolean | undefined;
|
|
119
119
|
development?: boolean | undefined;
|
|
120
120
|
}>>;
|
|
121
|
+
watch: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
skipWrite: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
notify: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
compareContents: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, "strict", z.ZodTypeAny, {
|
|
127
|
+
pollInterval?: number | undefined;
|
|
128
|
+
compareContents?: boolean | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
pollInterval?: number | undefined;
|
|
131
|
+
compareContents?: boolean | undefined;
|
|
132
|
+
}>>;
|
|
133
|
+
chokidar: z.ZodOptional<z.ZodAny>;
|
|
134
|
+
}, "strict", z.ZodTypeAny, {
|
|
135
|
+
skipWrite?: boolean | undefined;
|
|
136
|
+
notify?: {
|
|
137
|
+
pollInterval?: number | undefined;
|
|
138
|
+
compareContents?: boolean | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
chokidar?: any;
|
|
141
|
+
}, {
|
|
142
|
+
skipWrite?: boolean | undefined;
|
|
143
|
+
notify?: {
|
|
144
|
+
pollInterval?: number | undefined;
|
|
145
|
+
compareContents?: boolean | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
chokidar?: any;
|
|
148
|
+
}>>;
|
|
121
149
|
}, "strict", z.ZodTypeAny, {
|
|
122
150
|
input?: string | string[] | Record<string, string> | undefined;
|
|
123
151
|
plugins?: RolldownPluginRec[] | undefined;
|
|
@@ -160,6 +188,14 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
160
188
|
define?: Record<string, string> | undefined;
|
|
161
189
|
inject?: Record<string, string | [string, string]> | undefined;
|
|
162
190
|
profilerNames?: boolean | undefined;
|
|
191
|
+
watch?: {
|
|
192
|
+
skipWrite?: boolean | undefined;
|
|
193
|
+
notify?: {
|
|
194
|
+
pollInterval?: number | undefined;
|
|
195
|
+
compareContents?: boolean | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
chokidar?: any;
|
|
198
|
+
} | undefined;
|
|
163
199
|
}, {
|
|
164
200
|
input?: string | string[] | Record<string, string> | undefined;
|
|
165
201
|
plugins?: RolldownPluginRec[] | undefined;
|
|
@@ -202,6 +238,14 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
202
238
|
define?: Record<string, string> | undefined;
|
|
203
239
|
inject?: Record<string, string | [string, string]> | undefined;
|
|
204
240
|
profilerNames?: boolean | undefined;
|
|
241
|
+
watch?: {
|
|
242
|
+
skipWrite?: boolean | undefined;
|
|
243
|
+
notify?: {
|
|
244
|
+
pollInterval?: number | undefined;
|
|
245
|
+
compareContents?: boolean | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
chokidar?: any;
|
|
248
|
+
} | undefined;
|
|
205
249
|
}>;
|
|
206
250
|
export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
207
251
|
input: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
@@ -293,11 +337,39 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
|
|
|
293
337
|
refresh?: boolean | undefined;
|
|
294
338
|
development?: boolean | undefined;
|
|
295
339
|
}>>;
|
|
340
|
+
watch: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
skipWrite: z.ZodOptional<z.ZodBoolean>;
|
|
342
|
+
notify: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
compareContents: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
+
}, "strict", z.ZodTypeAny, {
|
|
346
|
+
pollInterval?: number | undefined;
|
|
347
|
+
compareContents?: boolean | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
pollInterval?: number | undefined;
|
|
350
|
+
compareContents?: boolean | undefined;
|
|
351
|
+
}>>;
|
|
352
|
+
chokidar: z.ZodOptional<z.ZodAny>;
|
|
353
|
+
}, "strict", z.ZodTypeAny, {
|
|
354
|
+
skipWrite?: boolean | undefined;
|
|
355
|
+
notify?: {
|
|
356
|
+
pollInterval?: number | undefined;
|
|
357
|
+
compareContents?: boolean | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
chokidar?: any;
|
|
360
|
+
}, {
|
|
361
|
+
skipWrite?: boolean | undefined;
|
|
362
|
+
notify?: {
|
|
363
|
+
pollInterval?: number | undefined;
|
|
364
|
+
compareContents?: boolean | undefined;
|
|
365
|
+
} | undefined;
|
|
366
|
+
chokidar?: any;
|
|
367
|
+
}>>;
|
|
296
368
|
}, {
|
|
297
369
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
298
370
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
371
|
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
300
|
-
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, {
|
|
372
|
+
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">, "strict", z.ZodTypeAny, {
|
|
301
373
|
external?: string[] | undefined;
|
|
302
374
|
cwd?: string | undefined;
|
|
303
375
|
platform?: "node" | "browser" | "neutral" | undefined;
|
|
@@ -8,5 +8,5 @@ export declare class RolldownBuild {
|
|
|
8
8
|
generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
9
9
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
10
10
|
close(): Promise<void>;
|
|
11
|
-
watch(): Promise<Watcher>;
|
|
11
|
+
watch(outputOptions?: OutputOptions): Promise<Watcher>;
|
|
12
12
|
}
|
package/dist/types/rolldown.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { InputOptions } from './options/input-options';
|
|
2
2
|
import { RolldownBuild } from './rolldown-build';
|
|
3
3
|
import { Watcher } from './watcher';
|
|
4
|
+
import { WatchOptions } from './options/watch-option';
|
|
4
5
|
export declare const rolldown: (input: InputOptions) => Promise<RolldownBuild>;
|
|
5
|
-
export declare const watch: (input:
|
|
6
|
+
export declare const watch: (input: WatchOptions) => Promise<Watcher>;
|
|
6
7
|
/**
|
|
7
8
|
* @description
|
|
8
9
|
* This is an experimental API. It's behavior may change in the future.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.13.2-snapshot-
|
|
3
|
+
"version": "0.13.2-snapshot-d822812-20241022003358",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -104,21 +104,21 @@
|
|
|
104
104
|
"why-is-node-running": "^3.0.0",
|
|
105
105
|
"zod-to-json-schema": "^3.23.2",
|
|
106
106
|
"@rolldown/testing": "0.0.1",
|
|
107
|
-
"rolldown": "0.13.2-snapshot-
|
|
107
|
+
"rolldown": "0.13.2-snapshot-d822812-20241022003358"
|
|
108
108
|
},
|
|
109
109
|
"optionalDependencies": {
|
|
110
|
-
"@rolldown/binding-darwin-
|
|
111
|
-
"@rolldown/binding-
|
|
112
|
-
"@rolldown/binding-
|
|
113
|
-
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-
|
|
114
|
-
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-
|
|
115
|
-
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-
|
|
116
|
-
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-
|
|
117
|
-
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-
|
|
118
|
-
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-
|
|
119
|
-
"@rolldown/binding-win32-
|
|
120
|
-
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-
|
|
121
|
-
"@rolldown/binding-win32-
|
|
110
|
+
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-d822812-20241022003358",
|
|
111
|
+
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-d822812-20241022003358",
|
|
112
|
+
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-d822812-20241022003358",
|
|
113
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-d822812-20241022003358",
|
|
114
|
+
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-d822812-20241022003358",
|
|
115
|
+
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-d822812-20241022003358",
|
|
116
|
+
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-d822812-20241022003358",
|
|
117
|
+
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-d822812-20241022003358",
|
|
118
|
+
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-d822812-20241022003358",
|
|
119
|
+
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-d822812-20241022003358",
|
|
120
|
+
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-d822812-20241022003358",
|
|
121
|
+
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-d822812-20241022003358"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"# Scrips for binding #": "_",
|