File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 58
58
. example ( bin => ` ${ bin } --input.index src/foo.ts` )
59
59
. action ( async ( input , options ) => {
60
60
const { Bundler } = await import ( './' )
61
+ const rootDir = options . rootDir || '.'
61
62
const bundler = new Bundler (
62
63
{
63
64
input : options . input || ( input . length === 0 ? undefined : input ) ,
91
92
? 'quiet'
92
93
: undefined ,
93
94
stackTrace : options . stackTrace ,
94
- configFile : options . config
95
+ configFile : options . config ,
96
+ rootDir
95
97
}
96
98
)
97
99
await bundler
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ export class Bundler {
522
522
}
523
523
} )
524
524
525
- let { format } = this . config . output
525
+ let { format, target } = this . config . output
526
526
if ( Array . isArray ( format ) ) {
527
527
if ( format . length === 0 ) {
528
528
format = [ 'cjs' ]
@@ -536,8 +536,12 @@ export class Bundler {
536
536
537
537
for ( const source of sources ) {
538
538
for ( const format of formats ) {
539
+ let title = `Bundle ${ source . files . join ( ', ' ) } in ${ format } format`
540
+ if ( target ) {
541
+ title += ` for target ${ target } `
542
+ }
539
543
tasks . push ( {
540
- title : `Bundle ${ source . files . join ( ', ' ) } in ${ format } format` ,
544
+ title,
541
545
getConfig : async ( context , task ) => {
542
546
const assets : Assets = new Map ( )
543
547
this . bundles . add ( assets )
You can’t perform that action at this time.
0 commit comments