From f11cab7181b17122c1d5a0f667fb401f7303ccc0 Mon Sep 17 00:00:00 2001 From: guybedford Date: Mon, 17 Dec 2018 22:02:23 +0200 Subject: [PATCH] fix minify default --- 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 c309da9b..de33fd5a 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 650ce90d..42933a6d 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -58,8 +58,7 @@ for (const integrationTest of fs.readdirSync(__dirname + "/integration")) { if (!/\.(mjs|tsx?|js)$/.test(integrationTest)) continue; 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);