rolldown 0.15.0 → 0.15.1
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 +249 -183
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/esm/cli.mjs +343 -277
- 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/{chunk-BK2Ye-xa.cjs → chunk-BFvIen8E.cjs} +0 -11
- package/dist/shared/{consola_36c0034f-_8_dG1Nr.cjs → consola_36c0034f-B7L-radJ.cjs} +2 -2
- package/dist/shared/{consola_36c0034f-DWsVjwtA.mjs → consola_36c0034f-D9ce-831.mjs} +10 -10
- package/dist/shared/{prompt-RFvZMmjc.cjs → prompt-BiXtYIJ2.cjs} +3 -3
- package/dist/shared/{prompt-DGW8ZJmn.mjs → prompt-DlQ-08lk.mjs} +2 -2
- package/dist/shared/{src-DEPa5yhI.mjs → src-BQ98i9JJ.mjs} +312 -225
- package/dist/shared/{src-COU7qQBJ.cjs → src-CkH9jtTi.cjs} +301 -208
- package/dist/tsconfig.dts.tsbuildinfo +1 -0
- package/dist/types/api/build.d.ts +2 -0
- package/dist/types/api/watch/index.d.ts +2 -2
- package/dist/types/api/watch/watch-emitter.d.ts +31 -0
- package/dist/types/api/watch/watcher.d.ts +7 -27
- package/dist/types/binding.d.ts +107 -17
- package/dist/types/builtin-plugin/constructors.d.ts +1 -5
- package/dist/types/cli/arguments/index.d.ts +5 -3
- package/dist/types/cli/arguments/schema.d.ts +10 -397
- package/dist/types/cli/colors.d.ts +11 -1
- package/dist/types/cli/load-config.d.ts +3 -0
- package/dist/types/cli/logger.d.ts +5 -0
- package/dist/types/constants/plugin.d.ts +8 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/log/logging.d.ts +6 -6
- package/dist/types/log/logs.d.ts +1 -0
- package/dist/types/options/input-options-schema.d.ts +3 -595
- package/dist/types/options/input-options.d.ts +16 -1
- package/dist/types/options/normalized-input-options.d.ts +1 -1
- package/dist/types/options/normalized-output-options.d.ts +21 -17
- package/dist/types/options/output-options-schema.d.ts +2 -146
- package/dist/types/options/output-options.d.ts +1 -0
- package/dist/types/plugin/minimal-plugin-context.d.ts +3 -3
- package/dist/types/plugin/plugin-context-data.d.ts +2 -1
- package/dist/types/plugin/plugin-context.d.ts +14 -10
- package/dist/types/plugin/transform-plugin-context.d.ts +7 -4
- package/dist/types/rollup.d.ts +4 -0
- package/dist/types/treeshake/module-side-effects.d.ts +14 -115
- package/dist/types/types/module-info.d.ts +1 -0
- package/dist/types/types/rolldown-output.d.ts +6 -0
- package/dist/types/utils/bindingify-input-options.d.ts +1 -1
- package/dist/types/utils/create-bundler-option.d.ts +11 -0
- package/dist/types/utils/error.d.ts +2 -1
- package/dist/types/utils/misc.d.ts +1 -1
- package/dist/types/utils/transform-sourcemap.d.ts +1 -1
- package/dist/types/utils/zod-ext.d.ts +6 -5
- package/package.json +16 -16
- package/dist/types/cli/utils.d.ts +0 -6
- package/dist/types/log/locate-character/index.d.ts +0 -13
|
@@ -1,399 +1,12 @@
|
|
|
1
|
+
import { InputCliOptions } from '../../options/input-options';
|
|
2
|
+
import { OutputCliOptions } from '../../options/output-options';
|
|
1
3
|
import type { ObjectSchema } from './types';
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
config
|
|
5
|
-
help
|
|
6
|
-
version
|
|
7
|
-
watch
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
plugins: z.ZodOptional<z.ZodType<import("../../plugin").RolldownPluginOption, z.ZodTypeDef, import("../../plugin").RolldownPluginOption>>;
|
|
11
|
-
external: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodString>, z.ZodBoolean], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodVoid, z.ZodNull]>, z.ZodUndefined]>, z.ZodBoolean]>>]>>;
|
|
12
|
-
resolve: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
|
-
aliasFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
15
|
-
conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
-
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
17
|
-
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
18
|
-
extensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
-
mainFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
-
mainFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
-
modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
-
symlinks: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
tsconfigFilename: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, "strict", z.ZodTypeAny, {
|
|
25
|
-
modules?: string[] | undefined;
|
|
26
|
-
alias?: Record<string, string> | undefined;
|
|
27
|
-
extensionAlias?: Record<string, string[]> | undefined;
|
|
28
|
-
aliasFields?: string[][] | undefined;
|
|
29
|
-
conditionNames?: string[] | undefined;
|
|
30
|
-
exportsFields?: string[][] | undefined;
|
|
31
|
-
extensions?: string[] | undefined;
|
|
32
|
-
mainFields?: string[] | undefined;
|
|
33
|
-
mainFiles?: string[] | undefined;
|
|
34
|
-
symlinks?: boolean | undefined;
|
|
35
|
-
tsconfigFilename?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
modules?: string[] | undefined;
|
|
38
|
-
alias?: Record<string, string> | undefined;
|
|
39
|
-
extensionAlias?: Record<string, string[]> | undefined;
|
|
40
|
-
aliasFields?: string[][] | undefined;
|
|
41
|
-
conditionNames?: string[] | undefined;
|
|
42
|
-
exportsFields?: string[][] | undefined;
|
|
43
|
-
extensions?: string[] | undefined;
|
|
44
|
-
mainFields?: string[] | undefined;
|
|
45
|
-
mainFiles?: string[] | undefined;
|
|
46
|
-
symlinks?: boolean | undefined;
|
|
47
|
-
tsconfigFilename?: string | undefined;
|
|
48
|
-
}>>;
|
|
49
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
50
|
-
platform: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"node">, z.ZodLiteral<"browser">]>, z.ZodLiteral<"neutral">]>>;
|
|
51
|
-
shimMissingExports: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
53
|
-
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
54
|
-
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
|
|
55
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
sideEffects: z.ZodBoolean;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
sideEffects: boolean;
|
|
59
|
-
external?: boolean | undefined;
|
|
60
|
-
test?: RegExp | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
sideEffects: boolean;
|
|
63
|
-
external?: boolean | undefined;
|
|
64
|
-
test?: RegExp | undefined;
|
|
65
|
-
}>, {
|
|
66
|
-
sideEffects: boolean;
|
|
67
|
-
external?: boolean | undefined;
|
|
68
|
-
test?: RegExp | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
sideEffects: boolean;
|
|
71
|
-
external?: boolean | undefined;
|
|
72
|
-
test?: RegExp | undefined;
|
|
73
|
-
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
|
|
74
|
-
annotations: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
76
|
-
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
77
|
-
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
|
|
78
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
sideEffects: z.ZodBoolean;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
sideEffects: boolean;
|
|
82
|
-
external?: boolean | undefined;
|
|
83
|
-
test?: RegExp | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
sideEffects: boolean;
|
|
86
|
-
external?: boolean | undefined;
|
|
87
|
-
test?: RegExp | undefined;
|
|
88
|
-
}>, {
|
|
89
|
-
sideEffects: boolean;
|
|
90
|
-
external?: boolean | undefined;
|
|
91
|
-
test?: RegExp | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
sideEffects: boolean;
|
|
94
|
-
external?: boolean | undefined;
|
|
95
|
-
test?: RegExp | undefined;
|
|
96
|
-
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
|
|
97
|
-
annotations: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
99
|
-
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
100
|
-
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
|
|
101
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
sideEffects: z.ZodBoolean;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
sideEffects: boolean;
|
|
105
|
-
external?: boolean | undefined;
|
|
106
|
-
test?: RegExp | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
sideEffects: boolean;
|
|
109
|
-
external?: boolean | undefined;
|
|
110
|
-
test?: RegExp | undefined;
|
|
111
|
-
}>, {
|
|
112
|
-
sideEffects: boolean;
|
|
113
|
-
external?: boolean | undefined;
|
|
114
|
-
test?: RegExp | undefined;
|
|
115
|
-
}, {
|
|
116
|
-
sideEffects: boolean;
|
|
117
|
-
external?: boolean | undefined;
|
|
118
|
-
test?: RegExp | undefined;
|
|
119
|
-
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
|
|
120
|
-
annotations: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
|
|
122
|
-
logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>;
|
|
123
|
-
onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
124
|
-
onwarn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodAny, z.ZodString]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodAny, z.ZodString]>>]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
125
|
-
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>, z.ZodLiteral<"css">]>>>;
|
|
126
|
-
experimental: z.ZodOptional<z.ZodObject<{
|
|
127
|
-
enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
disableLiveBindings: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
resolveNewUrlToAsset: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
}, "strict", z.ZodTypeAny, {
|
|
132
|
-
strictExecutionOrder?: boolean | undefined;
|
|
133
|
-
disableLiveBindings?: boolean | undefined;
|
|
134
|
-
resolveNewUrlToAsset?: boolean | undefined;
|
|
135
|
-
enableComposingJsPlugins?: boolean | undefined;
|
|
136
|
-
}, {
|
|
137
|
-
strictExecutionOrder?: boolean | undefined;
|
|
138
|
-
disableLiveBindings?: boolean | undefined;
|
|
139
|
-
resolveNewUrlToAsset?: boolean | undefined;
|
|
140
|
-
enableComposingJsPlugins?: boolean | undefined;
|
|
141
|
-
}>>;
|
|
142
|
-
define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
143
|
-
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
|
|
144
|
-
profilerNames: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
-
jsx: z.ZodOptional<z.ZodObject<{
|
|
146
|
-
mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"automatic">]>>;
|
|
147
|
-
factory: z.ZodOptional<z.ZodString>;
|
|
148
|
-
fragment: z.ZodOptional<z.ZodString>;
|
|
149
|
-
importSource: z.ZodOptional<z.ZodString>;
|
|
150
|
-
jsxImportSource: z.ZodOptional<z.ZodString>;
|
|
151
|
-
refresh: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
-
development: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
-
}, "strict", z.ZodTypeAny, {
|
|
154
|
-
development?: boolean | undefined;
|
|
155
|
-
refresh?: boolean | undefined;
|
|
156
|
-
mode?: "classic" | "automatic" | undefined;
|
|
157
|
-
factory?: string | undefined;
|
|
158
|
-
fragment?: string | undefined;
|
|
159
|
-
importSource?: string | undefined;
|
|
160
|
-
jsxImportSource?: string | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
development?: boolean | undefined;
|
|
163
|
-
refresh?: boolean | undefined;
|
|
164
|
-
mode?: "classic" | "automatic" | undefined;
|
|
165
|
-
factory?: string | undefined;
|
|
166
|
-
fragment?: string | undefined;
|
|
167
|
-
importSource?: string | undefined;
|
|
168
|
-
jsxImportSource?: string | undefined;
|
|
169
|
-
}>>;
|
|
170
|
-
watch: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
171
|
-
skipWrite: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
-
notify: z.ZodOptional<z.ZodObject<{
|
|
173
|
-
pollInterval: z.ZodOptional<z.ZodNumber>;
|
|
174
|
-
compareContents: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
-
}, "strict", z.ZodTypeAny, {
|
|
176
|
-
pollInterval?: number | undefined;
|
|
177
|
-
compareContents?: boolean | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
pollInterval?: number | undefined;
|
|
180
|
-
compareContents?: boolean | undefined;
|
|
181
|
-
}>>;
|
|
182
|
-
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
183
|
-
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>;
|
|
184
|
-
chokidar: z.ZodOptional<z.ZodAny>;
|
|
185
|
-
}, "strict", z.ZodTypeAny, {
|
|
186
|
-
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
187
|
-
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
188
|
-
notify?: {
|
|
189
|
-
pollInterval?: number | undefined;
|
|
190
|
-
compareContents?: boolean | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
skipWrite?: boolean | undefined;
|
|
193
|
-
chokidar?: any;
|
|
194
|
-
}, {
|
|
195
|
-
include?: string | RegExp | (string | RegExp)[] | undefined;
|
|
196
|
-
exclude?: string | RegExp | (string | RegExp)[] | undefined;
|
|
197
|
-
notify?: {
|
|
198
|
-
pollInterval?: number | undefined;
|
|
199
|
-
compareContents?: boolean | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
skipWrite?: boolean | undefined;
|
|
202
|
-
chokidar?: any;
|
|
203
|
-
}>, z.ZodLiteral<false>]>>;
|
|
204
|
-
dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
|
-
}, {
|
|
206
|
-
external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
207
|
-
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
208
|
-
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
209
|
-
}>, "plugins" | "onLog" | "onwarn" | "input" | "resolve" | "watch" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{
|
|
210
|
-
dir: z.ZodOptional<z.ZodString>;
|
|
211
|
-
file: z.ZodOptional<z.ZodString>;
|
|
212
|
-
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
|
|
213
|
-
hashCharacters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"base64">, z.ZodLiteral<"base36">]>, z.ZodLiteral<"hex">]>>;
|
|
214
|
-
format: z.ZodOptional<z.ZodUnion<[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">]>, z.ZodLiteral<"umd">]>>;
|
|
215
|
-
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
|
|
216
|
-
sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<import("../../rollup").SourcemapIgnoreListOption, z.ZodTypeDef, import("../../rollup").SourcemapIgnoreListOption>]>>;
|
|
217
|
-
sourcemapPathTransform: z.ZodOptional<z.ZodType<import("../../rollup").SourcemapPathTransformOption, z.ZodTypeDef, import("../../rollup").SourcemapPathTransformOption>>;
|
|
218
|
-
banner: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").RenderedChunk, z.ZodTypeDef, import("../..").RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
219
|
-
footer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").RenderedChunk, z.ZodTypeDef, import("../..").RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
220
|
-
intro: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").RenderedChunk, z.ZodTypeDef, import("../..").RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
221
|
-
outro: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").RenderedChunk, z.ZodTypeDef, import("../..").RenderedChunk>], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>]>>;
|
|
222
|
-
extend: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
-
esModule: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"if-default-prop">, z.ZodBoolean]>>;
|
|
224
|
-
assetFileNames: z.ZodOptional<z.ZodString>;
|
|
225
|
-
entryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
226
|
-
chunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
227
|
-
cssEntryFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
228
|
-
cssChunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<import("../..").PreRenderedChunk, z.ZodTypeDef, import("../..").PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
|
|
229
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
-
name: z.ZodOptional<z.ZodString>;
|
|
231
|
-
globals: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodString>]>>;
|
|
232
|
-
externalLiveBindings: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
233
|
-
inlineDynamicImports: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
234
|
-
advancedChunks: z.ZodOptional<z.ZodObject<{
|
|
235
|
-
minSize: z.ZodOptional<z.ZodNumber>;
|
|
236
|
-
minShareCount: z.ZodOptional<z.ZodNumber>;
|
|
237
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
|
-
name: z.ZodString;
|
|
239
|
-
test: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
240
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
241
|
-
minSize: z.ZodOptional<z.ZodNumber>;
|
|
242
|
-
minShareCount: z.ZodOptional<z.ZodNumber>;
|
|
243
|
-
}, "strict", z.ZodTypeAny, {
|
|
244
|
-
name: string;
|
|
245
|
-
test?: string | RegExp | undefined;
|
|
246
|
-
minSize?: number | undefined;
|
|
247
|
-
minShareCount?: number | undefined;
|
|
248
|
-
priority?: number | undefined;
|
|
249
|
-
}, {
|
|
250
|
-
name: string;
|
|
251
|
-
test?: string | RegExp | undefined;
|
|
252
|
-
minSize?: number | undefined;
|
|
253
|
-
minShareCount?: number | undefined;
|
|
254
|
-
priority?: number | undefined;
|
|
255
|
-
}>, "many">>;
|
|
256
|
-
}, "strict", z.ZodTypeAny, {
|
|
257
|
-
minSize?: number | undefined;
|
|
258
|
-
minShareCount?: number | undefined;
|
|
259
|
-
groups?: {
|
|
260
|
-
name: string;
|
|
261
|
-
test?: string | RegExp | undefined;
|
|
262
|
-
minSize?: number | undefined;
|
|
263
|
-
minShareCount?: number | undefined;
|
|
264
|
-
priority?: number | undefined;
|
|
265
|
-
}[] | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
minSize?: number | undefined;
|
|
268
|
-
minShareCount?: number | undefined;
|
|
269
|
-
groups?: {
|
|
270
|
-
name: string;
|
|
271
|
-
test?: string | RegExp | undefined;
|
|
272
|
-
minSize?: number | undefined;
|
|
273
|
-
minShareCount?: number | undefined;
|
|
274
|
-
priority?: number | undefined;
|
|
275
|
-
}[] | undefined;
|
|
276
|
-
}>>;
|
|
277
|
-
comments: z.ZodOptional<z.ZodEnum<["none", "preserve-legal"]>>;
|
|
278
|
-
}, {
|
|
279
|
-
banner: z.ZodOptional<z.ZodString>;
|
|
280
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
281
|
-
intro: z.ZodOptional<z.ZodString>;
|
|
282
|
-
outro: z.ZodOptional<z.ZodString>;
|
|
283
|
-
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
-
globals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
285
|
-
advancedChunks: z.ZodOptional<z.ZodObject<{
|
|
286
|
-
minSize: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
minShareCount: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
}, "strict", z.ZodTypeAny, {
|
|
289
|
-
minSize?: number | undefined;
|
|
290
|
-
minShareCount?: number | undefined;
|
|
291
|
-
}, {
|
|
292
|
-
minSize?: number | undefined;
|
|
293
|
-
minShareCount?: number | undefined;
|
|
294
|
-
}>>;
|
|
295
|
-
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">>, "strict", z.ZodTypeAny, {
|
|
296
|
-
name?: string | undefined;
|
|
297
|
-
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
298
|
-
banner?: string | undefined;
|
|
299
|
-
footer?: string | undefined;
|
|
300
|
-
intro?: string | undefined;
|
|
301
|
-
outro?: string | undefined;
|
|
302
|
-
esModule?: boolean | undefined;
|
|
303
|
-
globals?: Record<string, string> | undefined;
|
|
304
|
-
advancedChunks?: {
|
|
305
|
-
minSize?: number | undefined;
|
|
306
|
-
minShareCount?: number | undefined;
|
|
307
|
-
} | undefined;
|
|
308
|
-
dir?: string | undefined;
|
|
309
|
-
file?: string | undefined;
|
|
310
|
-
hashCharacters?: "base64" | "base36" | "hex" | undefined;
|
|
311
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
312
|
-
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
313
|
-
extend?: boolean | undefined;
|
|
314
|
-
assetFileNames?: string | undefined;
|
|
315
|
-
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
316
|
-
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
317
|
-
cssEntryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
318
|
-
cssChunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
319
|
-
minify?: boolean | undefined;
|
|
320
|
-
externalLiveBindings?: boolean | undefined;
|
|
321
|
-
inlineDynamicImports?: boolean | undefined;
|
|
322
|
-
comments?: "none" | "preserve-legal" | undefined;
|
|
323
|
-
external?: string[] | undefined;
|
|
324
|
-
jsx?: {
|
|
325
|
-
development?: boolean | undefined;
|
|
326
|
-
refresh?: boolean | undefined;
|
|
327
|
-
mode?: "classic" | "automatic" | undefined;
|
|
328
|
-
factory?: string | undefined;
|
|
329
|
-
fragment?: string | undefined;
|
|
330
|
-
importSource?: string | undefined;
|
|
331
|
-
jsxImportSource?: string | undefined;
|
|
332
|
-
} | undefined;
|
|
333
|
-
platform?: "node" | "browser" | "neutral" | undefined;
|
|
334
|
-
logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
|
|
335
|
-
treeshake?: boolean | undefined;
|
|
336
|
-
inject?: Record<string, string> | undefined;
|
|
337
|
-
watch?: boolean | undefined;
|
|
338
|
-
cwd?: string | undefined;
|
|
339
|
-
shimMissingExports?: boolean | undefined;
|
|
340
|
-
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
341
|
-
define?: Record<string, string> | undefined;
|
|
342
|
-
dropLabels?: string[] | undefined;
|
|
343
|
-
config?: string | boolean | undefined;
|
|
344
|
-
help?: boolean | undefined;
|
|
345
|
-
version?: boolean | undefined;
|
|
346
|
-
}, {
|
|
347
|
-
name?: string | undefined;
|
|
348
|
-
exports?: "auto" | "named" | "default" | "none" | undefined;
|
|
349
|
-
banner?: string | undefined;
|
|
350
|
-
footer?: string | undefined;
|
|
351
|
-
intro?: string | undefined;
|
|
352
|
-
outro?: string | undefined;
|
|
353
|
-
esModule?: boolean | undefined;
|
|
354
|
-
globals?: Record<string, string> | undefined;
|
|
355
|
-
advancedChunks?: {
|
|
356
|
-
minSize?: number | undefined;
|
|
357
|
-
minShareCount?: number | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
dir?: string | undefined;
|
|
360
|
-
file?: string | undefined;
|
|
361
|
-
hashCharacters?: "base64" | "base36" | "hex" | undefined;
|
|
362
|
-
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
|
|
363
|
-
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
364
|
-
extend?: boolean | undefined;
|
|
365
|
-
assetFileNames?: string | undefined;
|
|
366
|
-
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
367
|
-
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
368
|
-
cssEntryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
369
|
-
cssChunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
|
|
370
|
-
minify?: boolean | undefined;
|
|
371
|
-
externalLiveBindings?: boolean | undefined;
|
|
372
|
-
inlineDynamicImports?: boolean | undefined;
|
|
373
|
-
comments?: "none" | "preserve-legal" | undefined;
|
|
374
|
-
external?: string[] | undefined;
|
|
375
|
-
jsx?: {
|
|
376
|
-
development?: boolean | undefined;
|
|
377
|
-
refresh?: boolean | undefined;
|
|
378
|
-
mode?: "classic" | "automatic" | undefined;
|
|
379
|
-
factory?: string | undefined;
|
|
380
|
-
fragment?: string | undefined;
|
|
381
|
-
importSource?: string | undefined;
|
|
382
|
-
jsxImportSource?: string | undefined;
|
|
383
|
-
} | undefined;
|
|
384
|
-
platform?: "node" | "browser" | "neutral" | undefined;
|
|
385
|
-
logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
|
|
386
|
-
treeshake?: boolean | undefined;
|
|
387
|
-
inject?: Record<string, string> | undefined;
|
|
388
|
-
watch?: boolean | undefined;
|
|
389
|
-
cwd?: string | undefined;
|
|
390
|
-
shimMissingExports?: boolean | undefined;
|
|
391
|
-
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
|
|
392
|
-
define?: Record<string, string> | undefined;
|
|
393
|
-
dropLabels?: string[] | undefined;
|
|
394
|
-
config?: string | boolean | undefined;
|
|
395
|
-
help?: boolean | undefined;
|
|
396
|
-
version?: boolean | undefined;
|
|
397
|
-
}>;
|
|
398
|
-
export type CliOptions = z.infer<typeof cliOptionsSchema>;
|
|
4
|
+
import type Z from 'zod';
|
|
5
|
+
export interface CliOptions extends InputCliOptions, OutputCliOptions {
|
|
6
|
+
config?: string | boolean;
|
|
7
|
+
help?: boolean;
|
|
8
|
+
version?: boolean;
|
|
9
|
+
watch?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const cliOptionsSchema: Z.ZodType<CliOptions>;
|
|
399
12
|
export declare const schema: ObjectSchema;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { Color } from 'colorette';
|
|
2
|
+
export declare const colors: {
|
|
3
|
+
bold: Color;
|
|
4
|
+
cyan: Color;
|
|
5
|
+
dim: Color;
|
|
6
|
+
gray: Color;
|
|
7
|
+
green: Color;
|
|
8
|
+
red: Color;
|
|
9
|
+
underline: Color;
|
|
10
|
+
yellow: Color;
|
|
11
|
+
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { Plugin } from '../plugin';
|
|
2
2
|
export declare const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES: readonly ["options", "buildStart", "resolveId", "load", "transform", "moduleParsed", "buildEnd", "onLog", "resolveDynamicImport", "closeBundle", "closeWatcher", "watchChange"];
|
|
3
3
|
export declare const ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES: readonly ["augmentChunkHash", "outputOptions", "renderChunk", "renderStart", "renderError", "writeBundle", "generateBundle"];
|
|
4
|
-
export declare const ENUMERATED_PLUGIN_HOOK_NAMES:
|
|
4
|
+
export declare const ENUMERATED_PLUGIN_HOOK_NAMES: [
|
|
5
|
+
...typeof ENUMERATED_INPUT_PLUGIN_HOOK_NAMES,
|
|
6
|
+
...typeof ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES,
|
|
7
|
+
'footer',
|
|
8
|
+
'banner',
|
|
9
|
+
'intro',
|
|
10
|
+
'outro'
|
|
11
|
+
];
|
|
5
12
|
/**
|
|
6
13
|
* Names of all properties in a `Plugin` object. Includes `name` and `api`.
|
|
7
14
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ import { MinimalPluginContext } from './plugin/minimal-plugin-context';
|
|
|
20
20
|
import { ExistingRawSourceMap, SourceMapInput } from './types/sourcemap';
|
|
21
21
|
import { OutputBundle } from './types/output-bundle';
|
|
22
22
|
import { WatchOptions } from './options/watch-options';
|
|
23
|
-
import {
|
|
23
|
+
import { RolldownWatcher } from './api/watch/watch-emitter';
|
|
24
24
|
import { build, type BuildOptions } from './api/build';
|
|
25
25
|
export { defineConfig, rolldown, watch, build };
|
|
26
26
|
export declare const VERSION: string;
|
|
27
|
-
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, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions,
|
|
28
|
-
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, RolldownRenderedChunk as RenderedChunk, };
|
|
27
|
+
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, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, };
|
|
28
|
+
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, RolldownRenderedChunk as RenderedChunk, RolldownWatcher as RollupWatcher, };
|
|
29
29
|
export type { RollupError, RollupLog, LoggingFunction } from './rollup';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type Z from 'zod';
|
|
2
2
|
export type LogLevel = 'info' | 'debug' | 'warn';
|
|
3
3
|
export type LogLevelOption = LogLevel | 'silent';
|
|
4
4
|
export type LogLevelWithError = LogLevel | 'error';
|
|
5
5
|
export type RollupLog = any;
|
|
6
6
|
export type RollupLogWithString = RollupLog | string;
|
|
7
|
-
export declare const LogLevelSchema:
|
|
8
|
-
export declare const LogLevelOptionSchema:
|
|
9
|
-
export declare const LogLevelWithErrorSchema:
|
|
7
|
+
export declare const LogLevelSchema: Z.ZodType<LogLevel>;
|
|
8
|
+
export declare const LogLevelOptionSchema: Z.ZodType<LogLevelOption>;
|
|
9
|
+
export declare const LogLevelWithErrorSchema: Z.ZodType<LogLevelWithError>;
|
|
10
10
|
export declare const LOG_LEVEL_SILENT: LogLevelOption;
|
|
11
11
|
export declare const LOG_LEVEL_ERROR = "error";
|
|
12
12
|
export declare const LOG_LEVEL_WARN: LogLevel;
|
|
13
13
|
export declare const LOG_LEVEL_INFO: LogLevel;
|
|
14
14
|
export declare const LOG_LEVEL_DEBUG: LogLevel;
|
|
15
15
|
export declare const logLevelPriority: Record<LogLevelOption, number>;
|
|
16
|
-
export declare const RollupLogSchema:
|
|
17
|
-
export declare const RollupLogWithStringSchema:
|
|
16
|
+
export declare const RollupLogSchema: Z.ZodAny;
|
|
17
|
+
export declare const RollupLogWithStringSchema: Z.ZodUnion<[Z.ZodAny, Z.ZodString]>;
|
package/dist/types/log/logs.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { RollupLog } from '../rollup';
|
|
|
2
2
|
export declare function logInvalidLogPosition(pluginName: string): RollupLog;
|
|
3
3
|
export declare function logInputHookInOutputPlugin(pluginName: string, hookName: string): RollupLog;
|
|
4
4
|
export declare function logCycleLoading(pluginName: string, moduleId: string): RollupLog;
|
|
5
|
+
export declare function logMultiplyNotifyOption(): RollupLog;
|
|
5
6
|
export declare function logPluginError(error: Omit<RollupLog, 'code'> & {
|
|
6
7
|
code?: unknown;
|
|
7
8
|
}, plugin: string, { hook, id }?: {
|