File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,14 @@ async function resolveConfig(
206
206
external,
207
207
noExternal,
208
208
exports = false ,
209
+ bundle,
210
+ unbundle = typeof bundle === 'boolean' ? ! bundle : false ,
209
211
} = userConfig
210
212
213
+ if ( typeof bundle === 'boolean' ) {
214
+ logger . warn ( '`bundle` option is deprecated. Use `unbundle` instead.' )
215
+ }
216
+
211
217
outDir = path . resolve ( cwd , outDir )
212
218
clean = resolveClean ( clean , outDir , cwd )
213
219
@@ -303,6 +309,7 @@ async function resolveConfig(
303
309
external,
304
310
noExternal,
305
311
exports,
312
+ unbundle,
306
313
}
307
314
308
315
return config
Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ export interface Options {
172
172
*/
173
173
unbundle ?: boolean
174
174
175
+ /**
176
+ * @deprecated Use `unbundle` instead.
177
+ * @default true
178
+ */
179
+ bundle ?: boolean
180
+
175
181
define ?: Record < string , string >
176
182
/** @default false */
177
183
shims ?: boolean
@@ -387,7 +393,7 @@ export type ResolvedOptions = Omit<
387
393
| 'copy'
388
394
| 'loader'
389
395
| 'name'
390
- | 'unbundle '
396
+ | 'bundle '
391
397
> ,
392
398
{
393
399
format : NormalizedFormat [ ]
You can’t perform that action at this time.
0 commit comments