From 5bd0590a0a9bbd88e52f94946851a2314bd1ea7d Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Wed, 25 Nov 2020 10:27:27 -0800 Subject: [PATCH] fixup terser ncc (#1) --- packages/next/taskfile-ncc.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/next/taskfile-ncc.js b/packages/next/taskfile-ncc.js index e6baf0d98f12b01..16517da3b041733 100644 --- a/packages/next/taskfile-ncc.js +++ b/packages/next/taskfile-ncc.js @@ -18,9 +18,7 @@ module.exports = function (task) { Object.keys(assets).forEach((key) => { let data = assets[key].source - if ( - join(file.dir, key).endsWith('terser-webpack-plugin/dist/minify.js') - ) { + if (join(file.dir, key).endsWith('terser-webpack-plugin/minify.js')) { data = Buffer.from( data .toString()