diff --git a/src/index.js b/src/index.js index 5dbbd2f9..e2174e1e 100644 --- a/src/index.js +++ b/src/index.js @@ -410,11 +410,14 @@ function ncc ( }); // For some reason, auth0 returns "undefined"! // custom terser phase used over Webpack integration for this reason - if (result.code !== undefined) + if (result.code !== undefined) { ({ code, map } = { code: result.code, map: sourceMap ? JSON.parse(result.map) : undefined }); + } else { + console.log('An error occurred while minifying. The result will not be minified.') + } } if (v8cache) {