Skip to content

Commit

Permalink
fix: cannot read property 'minify' of undefined (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea authored and evilebottnawi committed Feb 4, 2019
1 parent bb902d7 commit 0593d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minify.js
@@ -1,7 +1,7 @@
/* eslint-disable
arrow-body-style
*/
import terser from 'terser';
import { minify as terserMinify } from 'terser';

const buildTerserOptions = ({
ecma,
Expand Down Expand Up @@ -175,7 +175,7 @@ const minify = (options) => {
);
}

const { error, map, code, warnings } = terser.minify(
const { error, map, code, warnings } = terserMinify(
{ [file]: input },
terserOptions
);
Expand Down

0 comments on commit 0593d7c

Please sign in to comment.