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);