File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ export async function build(_options: Options) {
262
262
minifyOptions : options . minify ,
263
263
format,
264
264
terserOptions : options . terserOptions ,
265
+ logger,
265
266
} ) ,
266
267
] )
267
268
await runEsbuild ( options , {
Original file line number Diff line number Diff line change 1
1
import { MinifyOptions } from 'terser'
2
2
import { PrettyError } from '../errors'
3
- import { createLogger } from '../log'
3
+ import { Logger } from '../log'
4
4
import { Format , Options } from '../options'
5
5
import { Plugin } from '../plugin'
6
6
import { localRequire } from '../utils'
7
7
8
- const logger = createLogger ( )
9
-
10
8
export const terserPlugin = ( {
11
9
minifyOptions,
12
10
format,
13
11
terserOptions = { } ,
12
+ logger
14
13
} : {
15
14
minifyOptions : Options [ 'minify' ]
16
15
format : Format
17
- terserOptions ?: MinifyOptions
16
+ terserOptions ?: MinifyOptions ,
17
+ logger : Logger
18
18
} ) : Plugin => {
19
19
return {
20
20
name : 'terser' ,
You can’t perform that action at this time.
0 commit comments