From c289b28ff8778cfd6673dc9217b007b2733d89e8 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 17 Dec 2018 22:03:37 +0200 Subject: [PATCH] fix minify default (#168) --- src/index.js | 2 +- test/index.test.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 4326e6dc..3cae6211 100644 --- a/src/index.js +++ b/src/index.js @@ -57,7 +57,7 @@ module.exports = async ( entry, { externals = [], - minify = false, + minify = true, sourceMap = false, filename = "index.js" } = {} diff --git a/test/index.test.js b/test/index.test.js index a8a29fa1..75247983 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -62,8 +62,7 @@ for (const integrationTest of fs.readdirSync(__dirname + "/integration")) { it(`should evaluate ${integrationTest} without errors`, async () => { const { code, map, assets } = await ncc( - __dirname + "/integration/" + integrationTest, - { minify: true, sourceMap: true } + __dirname + "/integration/" + integrationTest ); const tmpDir = `${__dirname}/tmp/${integrationTest}/`; clearDir(tmpDir);