Skip to content

Commit 356a01b

Browse files
committed
fix: print rollup warnings to log.warn()
1 parent 0079deb commit 356a01b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/steps/rollup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as __rollup from 'rollup';
22
import * as nodeResolve from 'rollup-plugin-node-resolve';
33
import * as commonJs from 'rollup-plugin-commonjs';
4-
import { debug } from '../util/log';
4+
import * as log from '../util/log';
55
import { ROLLUP_GLOBALS } from '../conf/rollup.globals';
66

77
export interface RollupOptions {
@@ -39,7 +39,7 @@ export async function rollup(opts: RollupOptions): Promise<void> {
3939
return;
4040
}
4141

42-
console.warn(warning.message);
42+
log.warn(warning.message);
4343
}
4444
};
4545

@@ -54,7 +54,7 @@ export async function rollup(opts: RollupOptions): Promise<void> {
5454
sourcemap: true
5555
};
5656

57-
debug(`rollup ${opts.entry} to ${opts.dest} (${opts.format})`);
57+
log.debug(`rollup ${opts.entry} to ${opts.dest} (${opts.format})`);
5858

5959
const bundle: any = await __rollup.rollup(bundleOptions);
6060
await bundle.write(writeOptions);

0 commit comments

Comments
 (0)