rolldown 0.13.2-snapshot-c19f7b8-20241020003530 → 0.13.2-snapshot-883b85d-20241021003414
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 +6 -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 +6 -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 +66 -65
- package/dist/shared/{src_index-qHSdyVE7.mjs → src_index-SFJFGR-7.mjs} +10 -4
- package/dist/shared/{src_index-w33O5rvI.cjs → src_index-YIQ9KryB.cjs} +10 -4
- package/dist/types/binding.d.ts +5 -1
- package/dist/types/cli/arguments/schema.d.ts +10 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/options/input-options.d.ts +21 -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-YIQ9KryB.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,7 @@ 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({skipRewrite: ((z$2.boolean()).describe("Skip the bundle.write() step")).optional()});
|
|
1330
1331
|
const inputOptionsSchema = z$2.strictObject({
|
|
1331
1332
|
input: inputOptionSchema.optional(),
|
|
1332
1333
|
plugins: ((phantom()).array()).optional(),
|
|
@@ -1360,7 +1361,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1360
1361
|
define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
|
|
1361
1362
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1362
1363
|
profilerNames: (z$2.boolean()).optional(),
|
|
1363
|
-
jsx: jsxOptionsSchema.optional()
|
|
1364
|
+
jsx: jsxOptionsSchema.optional(),
|
|
1365
|
+
watch: watchOptionsSchema.optional()
|
|
1364
1366
|
});
|
|
1365
1367
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1366
1368
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1373,7 +1375,8 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
|
1373
1375
|
onLog: true,
|
|
1374
1376
|
resolve: true,
|
|
1375
1377
|
experimental: true,
|
|
1376
|
-
profilerNames: true
|
|
1378
|
+
profilerNames: true,
|
|
1379
|
+
watch: true
|
|
1377
1380
|
});
|
|
1378
1381
|
|
|
1379
1382
|
//#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-YIQ9KryB.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-YIQ9KryB.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-YIQ9KryB.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-SFJFGR-7.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,7 @@ 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({skipRewrite: ((z$2.boolean()).describe("Skip the bundle.write() step")).optional()});
|
|
1329
1330
|
const inputOptionsSchema = z$2.strictObject({
|
|
1330
1331
|
input: inputOptionSchema.optional(),
|
|
1331
1332
|
plugins: ((phantom()).array()).optional(),
|
|
@@ -1359,7 +1360,8 @@ const inputOptionsSchema = z$2.strictObject({
|
|
|
1359
1360
|
define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
|
|
1360
1361
|
inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
|
|
1361
1362
|
profilerNames: (z$2.boolean()).optional(),
|
|
1362
|
-
jsx: jsxOptionsSchema.optional()
|
|
1363
|
+
jsx: jsxOptionsSchema.optional(),
|
|
1364
|
+
watch: watchOptionsSchema.optional()
|
|
1363
1365
|
});
|
|
1364
1366
|
const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
1365
1367
|
external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
|
|
@@ -1372,7 +1374,8 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
|
|
|
1372
1374
|
onLog: true,
|
|
1373
1375
|
resolve: true,
|
|
1374
1376
|
experimental: true,
|
|
1375
|
-
profilerNames: true
|
|
1377
|
+
profilerNames: true,
|
|
1378
|
+
watch: true
|
|
1376
1379
|
});
|
|
1377
1380
|
|
|
1378
1381
|
//#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-SFJFGR-7.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-SFJFGR-7.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-SFJFGR-7.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -100,71 +100,72 @@ 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__BindingResolveOptions_struct_13']?.()
|
|
105
|
+
__napiInstance.exports['__napi_register__BindingTreeshake_struct_14']?.()
|
|
106
|
+
__napiInstance.exports['__napi_register__BindingInputOptions_struct_15']?.()
|
|
107
|
+
__napiInstance.exports['__napi_register__BindingAdvancedChunksOptions_struct_16']?.()
|
|
108
|
+
__napiInstance.exports['__napi_register__BindingMatchGroup_struct_17']?.()
|
|
109
|
+
__napiInstance.exports['__napi_register__BindingOutputOptions_struct_18']?.()
|
|
110
|
+
__napiInstance.exports['__napi_register__BindingPluginContext_struct_19']?.()
|
|
111
|
+
__napiInstance.exports['__napi_register__BindingPluginContext_impl_25']?.()
|
|
112
|
+
__napiInstance.exports['__napi_register__BindingPluginContextResolvedId_struct_26']?.()
|
|
113
|
+
__napiInstance.exports['__napi_register__BindingPluginOptions_struct_27']?.()
|
|
114
|
+
__napiInstance.exports['__napi_register__BindingPluginWithIndex_struct_28']?.()
|
|
115
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginContext_struct_29']?.()
|
|
116
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginContext_impl_31']?.()
|
|
117
|
+
__napiInstance.exports['__napi_register__BindingAssetSource_struct_32']?.()
|
|
118
|
+
__napiInstance.exports['__napi_register__BindingEmittedAsset_struct_33']?.()
|
|
119
|
+
__napiInstance.exports['__napi_register__BindingGeneralHookFilter_struct_34']?.()
|
|
120
|
+
__napiInstance.exports['__napi_register__BindingTransformHookFilter_struct_35']?.()
|
|
121
|
+
__napiInstance.exports['__napi_register__BindingHookLoadOutput_struct_36']?.()
|
|
122
|
+
__napiInstance.exports['__napi_register__BindingHookRenderChunkOutput_struct_37']?.()
|
|
123
|
+
__napiInstance.exports['__napi_register__BindingHookResolveIdExtraArgs_struct_38']?.()
|
|
124
|
+
__napiInstance.exports['__napi_register__BindingHookResolveIdOutput_struct_39']?.()
|
|
125
|
+
__napiInstance.exports['__napi_register__BindingHookSideEffects_40']?.()
|
|
126
|
+
__napiInstance.exports['__napi_register__BindingHookTransformOutput_struct_41']?.()
|
|
127
|
+
__napiInstance.exports['__napi_register__BindingStringOrRegex_struct_42']?.()
|
|
128
|
+
__napiInstance.exports['__napi_register__BindingPluginContextResolveOptions_struct_43']?.()
|
|
129
|
+
__napiInstance.exports['__napi_register__BindingTransformHookExtraArgs_struct_44']?.()
|
|
130
|
+
__napiInstance.exports['__napi_register__BindingBuiltinPlugin_struct_45']?.()
|
|
131
|
+
__napiInstance.exports['__napi_register__BindingBuiltinPluginName_46']?.()
|
|
132
|
+
__napiInstance.exports['__napi_register__BindingGlobImportPluginConfig_struct_47']?.()
|
|
133
|
+
__napiInstance.exports['__napi_register__BindingManifestPluginConfig_struct_48']?.()
|
|
134
|
+
__napiInstance.exports['__napi_register__BindingModulePreloadPolyfillPluginConfig_struct_49']?.()
|
|
135
|
+
__napiInstance.exports['__napi_register__BindingJsonPluginConfig_struct_50']?.()
|
|
136
|
+
__napiInstance.exports['__napi_register__BindingTransformPluginConfig_struct_51']?.()
|
|
137
|
+
__napiInstance.exports['__napi_register__BindingAliasPluginConfig_struct_52']?.()
|
|
138
|
+
__napiInstance.exports['__napi_register__BindingAliasPluginAlias_struct_53']?.()
|
|
139
|
+
__napiInstance.exports['__napi_register__BindingBuildImportAnalysisPluginConfig_struct_54']?.()
|
|
140
|
+
__napiInstance.exports['__napi_register__BindingReplacePluginConfig_struct_55']?.()
|
|
141
|
+
__napiInstance.exports['__napi_register__BindingPluginOrder_56']?.()
|
|
142
|
+
__napiInstance.exports['__napi_register__BindingPluginHookMeta_struct_57']?.()
|
|
143
|
+
__napiInstance.exports['__napi_register__ParallelJsPluginRegistry_struct_58']?.()
|
|
144
|
+
__napiInstance.exports['__napi_register__ParallelJsPluginRegistry_impl_60']?.()
|
|
145
|
+
__napiInstance.exports['__napi_register__register_plugins_61']?.()
|
|
146
|
+
__napiInstance.exports['__napi_register__BindingLog_struct_62']?.()
|
|
147
|
+
__napiInstance.exports['__napi_register__BindingLogLevel_63']?.()
|
|
148
|
+
__napiInstance.exports['__napi_register__BindingModuleInfo_struct_64']?.()
|
|
149
|
+
__napiInstance.exports['__napi_register__BindingModuleInfo_impl_66']?.()
|
|
150
|
+
__napiInstance.exports['__napi_register__BindingOutputAsset_struct_67']?.()
|
|
151
|
+
__napiInstance.exports['__napi_register__BindingOutputAsset_impl_72']?.()
|
|
152
|
+
__napiInstance.exports['__napi_register__JsOutputAsset_struct_73']?.()
|
|
153
|
+
__napiInstance.exports['__napi_register__BindingOutputChunk_struct_74']?.()
|
|
154
|
+
__napiInstance.exports['__napi_register__BindingOutputChunk_impl_89']?.()
|
|
155
|
+
__napiInstance.exports['__napi_register__JsOutputChunk_struct_90']?.()
|
|
156
|
+
__napiInstance.exports['__napi_register__BindingOutputs_struct_91']?.()
|
|
157
|
+
__napiInstance.exports['__napi_register__BindingOutputs_impl_94']?.()
|
|
158
|
+
__napiInstance.exports['__napi_register__JsChangedOutputs_struct_95']?.()
|
|
159
|
+
__napiInstance.exports['__napi_register__PreRenderedChunk_struct_96']?.()
|
|
160
|
+
__napiInstance.exports['__napi_register__RenderedChunk_struct_97']?.()
|
|
161
|
+
__napiInstance.exports['__napi_register__BindingRenderedModule_struct_98']?.()
|
|
162
|
+
__napiInstance.exports['__napi_register__AliasItem_struct_99']?.()
|
|
163
|
+
__napiInstance.exports['__napi_register__ExtensionAliasItem_struct_100']?.()
|
|
164
|
+
__napiInstance.exports['__napi_register__BindingSourcemap_struct_101']?.()
|
|
165
|
+
__napiInstance.exports['__napi_register__BindingJsonSourcemap_struct_102']?.()
|
|
166
|
+
__napiInstance.exports['__napi_register__BindingWatcher_struct_103']?.()
|
|
167
|
+
__napiInstance.exports['__napi_register__BindingWatcher_impl_106']?.()
|
|
168
|
+
__napiInstance.exports['__napi_register__BindingWatcherEvent_107']?.()
|
|
168
169
|
}
|
|
169
170
|
module.exports.BindingLog = __napiModule.exports.BindingLog
|
|
170
171
|
module.exports.BindingModuleInfo = __napiModule.exports.BindingModuleInfo
|
|
@@ -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,11 @@ function bindingifyJsx(input) {
|
|
|
1964
1965
|
};
|
|
1965
1966
|
}
|
|
1966
1967
|
}
|
|
1968
|
+
function bindingifyWatch(watch$1) {
|
|
1969
|
+
if (watch$1) {
|
|
1970
|
+
return {skipWrite: watch$1.skipRewrite};
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1967
1973
|
|
|
1968
1974
|
//#endregion
|
|
1969
1975
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
@@ -2776,8 +2782,8 @@ class RolldownBuild {
|
|
|
2776
2782
|
await this.#stopWorkers?.();
|
|
2777
2783
|
await bundler.close();
|
|
2778
2784
|
}
|
|
2779
|
-
async watch() {
|
|
2780
|
-
const bundler = await this.#getBundler(
|
|
2785
|
+
async watch(outputOptions = {}) {
|
|
2786
|
+
const bundler = await this.#getBundler(outputOptions);
|
|
2781
2787
|
const bindingWatcher = await bundler.watch();
|
|
2782
2788
|
const watcher = new Watcher(bindingWatcher);
|
|
2783
2789
|
watcher.watch();
|
|
@@ -2791,7 +2797,7 @@ const rolldown = async (input) => {
|
|
|
2791
2797
|
return new RolldownBuild(input);
|
|
2792
2798
|
};
|
|
2793
2799
|
const watch = async (input) => {
|
|
2794
|
-
return (new RolldownBuild(input)).watch();
|
|
2800
|
+
return (new RolldownBuild(input)).watch(input.output);
|
|
2795
2801
|
};
|
|
2796
2802
|
const experimental_scan = async (input) => {
|
|
2797
2803
|
const { bundler: bundler, stopWorkers: stopWorkers } = await createBundler(input, {});
|
|
@@ -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,11 @@ function bindingifyJsx(input) {
|
|
|
1933
1934
|
};
|
|
1934
1935
|
}
|
|
1935
1936
|
}
|
|
1937
|
+
function bindingifyWatch(watch$1) {
|
|
1938
|
+
if (watch$1) {
|
|
1939
|
+
return {skipWrite: watch$1.skipRewrite};
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1936
1942
|
|
|
1937
1943
|
//#endregion
|
|
1938
1944
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
@@ -2745,8 +2751,8 @@ class RolldownBuild {
|
|
|
2745
2751
|
await this.#stopWorkers?.();
|
|
2746
2752
|
await bundler.close();
|
|
2747
2753
|
}
|
|
2748
|
-
async watch() {
|
|
2749
|
-
const bundler = await this.#getBundler(
|
|
2754
|
+
async watch(outputOptions = {}) {
|
|
2755
|
+
const bundler = await this.#getBundler(outputOptions);
|
|
2750
2756
|
const bindingWatcher = await bundler.watch();
|
|
2751
2757
|
const watcher = new Watcher(bindingWatcher);
|
|
2752
2758
|
watcher.watch();
|
|
@@ -2760,7 +2766,7 @@ const rolldown = async (input) => {
|
|
|
2760
2766
|
return new RolldownBuild(input);
|
|
2761
2767
|
};
|
|
2762
2768
|
const watch = async (input) => {
|
|
2763
|
-
return (new RolldownBuild(input)).watch();
|
|
2769
|
+
return (new RolldownBuild(input)).watch(input.output);
|
|
2764
2770
|
};
|
|
2765
2771
|
const experimental_scan = async (input) => {
|
|
2766
2772
|
const { bundler: bundler, stopWorkers: stopWorkers } = await createBundler(input, {});
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -235,6 +235,7 @@ export interface BindingInputOptions {
|
|
|
235
235
|
experimental?: BindingExperimentalOptions
|
|
236
236
|
profilerNames?: boolean
|
|
237
237
|
jsx?: JsxOptions
|
|
238
|
+
watch?: BindingWatchOption
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
export interface BindingJsonPluginConfig {
|
|
@@ -443,6 +444,10 @@ export declare enum BindingWatcherEvent {
|
|
|
443
444
|
Change = 3
|
|
444
445
|
}
|
|
445
446
|
|
|
447
|
+
export interface BindingWatchOption {
|
|
448
|
+
skipWrite?: boolean
|
|
449
|
+
}
|
|
450
|
+
|
|
446
451
|
export interface Es2015Options {
|
|
447
452
|
/** Transform arrow functions into function expressions. */
|
|
448
453
|
arrowFunction?: ArrowFunctionsOptions
|
|
@@ -769,4 +774,3 @@ export interface TypeScriptOptions {
|
|
|
769
774
|
*/
|
|
770
775
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean
|
|
771
776
|
}
|
|
772
|
-
|
|
@@ -95,11 +95,18 @@ 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
|
+
skipRewrite: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
skipRewrite?: boolean | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
skipRewrite?: boolean | undefined;
|
|
104
|
+
}>>;
|
|
98
105
|
}, {
|
|
99
106
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
100
107
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
101
108
|
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
102
|
-
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{
|
|
109
|
+
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">>, Omit<z.objectUtil.extendShape<{
|
|
103
110
|
dir: z.ZodOptional<z.ZodString>;
|
|
104
111
|
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
105
112
|
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 +205,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
198
205
|
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
199
206
|
define?: Record<string, string> | undefined;
|
|
200
207
|
inject?: Record<string, string> | undefined;
|
|
208
|
+
watch?: boolean | undefined;
|
|
201
209
|
footer?: string | undefined;
|
|
202
210
|
banner?: string | undefined;
|
|
203
211
|
intro?: string | undefined;
|
|
@@ -221,7 +229,6 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
221
229
|
minShareCount?: number | undefined;
|
|
222
230
|
} | undefined;
|
|
223
231
|
version?: boolean | undefined;
|
|
224
|
-
watch?: boolean | undefined;
|
|
225
232
|
config?: string | boolean | undefined;
|
|
226
233
|
help?: boolean | undefined;
|
|
227
234
|
}, {
|
|
@@ -243,6 +250,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
243
250
|
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
244
251
|
define?: Record<string, string> | undefined;
|
|
245
252
|
inject?: Record<string, string> | undefined;
|
|
253
|
+
watch?: boolean | undefined;
|
|
246
254
|
footer?: string | undefined;
|
|
247
255
|
banner?: string | undefined;
|
|
248
256
|
intro?: string | undefined;
|
|
@@ -266,7 +274,6 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
266
274
|
minShareCount?: number | undefined;
|
|
267
275
|
} | undefined;
|
|
268
276
|
version?: boolean | undefined;
|
|
269
|
-
watch?: boolean | undefined;
|
|
270
277
|
config?: string | boolean | undefined;
|
|
271
278
|
help?: boolean | undefined;
|
|
272
279
|
}>;
|
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,13 @@ 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
|
+
skipRewrite: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
}, "strict", z.ZodTypeAny, {
|
|
124
|
+
skipRewrite?: boolean | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
skipRewrite?: boolean | undefined;
|
|
127
|
+
}>>;
|
|
121
128
|
}, "strict", z.ZodTypeAny, {
|
|
122
129
|
input?: string | string[] | Record<string, string> | undefined;
|
|
123
130
|
plugins?: RolldownPluginRec[] | undefined;
|
|
@@ -160,6 +167,9 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
160
167
|
define?: Record<string, string> | undefined;
|
|
161
168
|
inject?: Record<string, string | [string, string]> | undefined;
|
|
162
169
|
profilerNames?: boolean | undefined;
|
|
170
|
+
watch?: {
|
|
171
|
+
skipRewrite?: boolean | undefined;
|
|
172
|
+
} | undefined;
|
|
163
173
|
}, {
|
|
164
174
|
input?: string | string[] | Record<string, string> | undefined;
|
|
165
175
|
plugins?: RolldownPluginRec[] | undefined;
|
|
@@ -202,6 +212,9 @@ export declare const inputOptionsSchema: z.ZodObject<{
|
|
|
202
212
|
define?: Record<string, string> | undefined;
|
|
203
213
|
inject?: Record<string, string | [string, string]> | undefined;
|
|
204
214
|
profilerNames?: boolean | undefined;
|
|
215
|
+
watch?: {
|
|
216
|
+
skipRewrite?: boolean | undefined;
|
|
217
|
+
} | undefined;
|
|
205
218
|
}>;
|
|
206
219
|
export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
207
220
|
input: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
@@ -293,11 +306,18 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
|
|
|
293
306
|
refresh?: boolean | undefined;
|
|
294
307
|
development?: boolean | undefined;
|
|
295
308
|
}>>;
|
|
309
|
+
watch: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
skipRewrite: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
+
}, "strict", z.ZodTypeAny, {
|
|
312
|
+
skipRewrite?: boolean | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
skipRewrite?: boolean | undefined;
|
|
315
|
+
}>>;
|
|
296
316
|
}, {
|
|
297
317
|
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
298
318
|
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
319
|
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
300
|
-
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, {
|
|
320
|
+
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">, "strict", z.ZodTypeAny, {
|
|
301
321
|
external?: string[] | undefined;
|
|
302
322
|
cwd?: string | undefined;
|
|
303
323
|
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-883b85d-20241021003414",
|
|
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-883b85d-20241021003414"
|
|
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-
|
|
117
|
-
"@rolldown/binding-linux-x64-
|
|
118
|
-
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-
|
|
119
|
-
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-
|
|
120
|
-
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-
|
|
121
|
-
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-
|
|
110
|
+
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-883b85d-20241021003414",
|
|
111
|
+
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-883b85d-20241021003414",
|
|
112
|
+
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-883b85d-20241021003414",
|
|
113
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-883b85d-20241021003414",
|
|
114
|
+
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-883b85d-20241021003414",
|
|
115
|
+
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-883b85d-20241021003414",
|
|
116
|
+
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-883b85d-20241021003414",
|
|
117
|
+
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-883b85d-20241021003414",
|
|
118
|
+
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-883b85d-20241021003414",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-883b85d-20241021003414",
|
|
120
|
+
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-883b85d-20241021003414",
|
|
121
|
+
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-883b85d-20241021003414"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"# Scrips for binding #": "_",
|