Skip to content

Commit 0593d7c

Browse files
haoqunjiangevilebottnawi
authored andcommitted
fix: cannot read property 'minify' of undefined (#69)
1 parent bb902d7 commit 0593d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/minify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable
22
arrow-body-style
33
*/
4-
import terser from 'terser';
4+
import { minify as terserMinify } from 'terser';
55

66
const buildTerserOptions = ({
77
ecma,
@@ -175,7 +175,7 @@ const minify = (options) => {
175175
);
176176
}
177177

178-
const { error, map, code, warnings } = terser.minify(
178+
const { error, map, code, warnings } = terserMinify(
179179
{ [file]: input },
180180
terserOptions
181181
);

0 commit comments

Comments
 (0)