Unverified Commit 3094016c authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Downgrade terser to fix invalid minifying (#12178)

parent 6ce3c7b4
...@@ -6,7 +6,6 @@ import chalk from 'next/dist/compiled/chalk' ...@@ -6,7 +6,6 @@ import chalk from 'next/dist/compiled/chalk'
import TerserPlugin from 'next/dist/compiled/terser-webpack-plugin' import TerserPlugin from 'next/dist/compiled/terser-webpack-plugin'
import path from 'path' import path from 'path'
import PnpWebpackPlugin from 'pnp-webpack-plugin' import PnpWebpackPlugin from 'pnp-webpack-plugin'
import { MinifyOptions } from 'terser'
import webpack from 'webpack' import webpack from 'webpack'
import { import {
DOT_NEXT_ALIAS, DOT_NEXT_ALIAS,
...@@ -293,7 +292,7 @@ export default async function getBaseWebpackConfig( ...@@ -293,7 +292,7 @@ export default async function getBaseWebpackConfig(
const webpackMode = dev ? 'development' : 'production' const webpackMode = dev ? 'development' : 'production'
const terserOptions: MinifyOptions = { const terserOptions: any = {
parse: { parse: {
ecma: 8, ecma: 8,
}, },
......
This diff is collapsed.
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
"string-hash": "1.1.3", "string-hash": "1.1.3",
"strip-ansi": "6.0.0", "strip-ansi": "6.0.0",
"taskr": "1.1.0", "taskr": "1.1.0",
"terser": "4.6.11", "terser": "4.4.2",
"terser-webpack-plugin": "gist:1b826e8b64f73158df99990d1b4624fa", "terser-webpack-plugin": "gist:1b826e8b64f73158df99990d1b4624fa",
"text-table": "0.2.0", "text-table": "0.2.0",
"thread-loader": "2.1.3", "thread-loader": "2.1.3",
......
...@@ -15957,10 +15957,10 @@ terser-webpack-plugin@^1.4.3: ...@@ -15957,10 +15957,10 @@ terser-webpack-plugin@^1.4.3:
terser "^4.4.3" terser "^4.4.3"
webpack-sources "^1.4.3" webpack-sources "^1.4.3"
terser@4.6.11, terser@^4.1.2, terser@^4.3.9, terser@^4.4.3: terser@4.4.2:
version "4.6.11" version "4.4.2"
resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.11.tgz#12ff99fdd62a26de2a82f508515407eb6ccd8a9f" resolved "https://registry.yarnpkg.com/terser/-/terser-4.4.2.tgz#448fffad0245f4c8a277ce89788b458bfd7706e8"
integrity sha512-76Ynm7OXUG5xhOpblhytE7X58oeNSmC8xnNhjWVo8CksHit0U0kO4hfNbPrrYwowLWFgM2n9L176VNx2QaHmtA== integrity sha512-Uufrsvhj9O1ikwgITGsZ5EZS6qPokUOkCegS7fYOdGTv+OA90vndUbU6PEjr5ePqHfNUbGyMO7xyIZv2MhsALQ==
dependencies: dependencies:
commander "^2.20.0" commander "^2.20.0"
source-map "~0.6.1" source-map "~0.6.1"
...@@ -15984,6 +15984,15 @@ terser@^3.8.2: ...@@ -15984,6 +15984,15 @@ terser@^3.8.2:
source-map "~0.6.1" source-map "~0.6.1"
source-map-support "~0.5.10" source-map-support "~0.5.10"
terser@^4.1.2, terser@^4.3.9, terser@^4.4.3:
version "4.6.11"
resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.11.tgz#12ff99fdd62a26de2a82f508515407eb6ccd8a9f"
integrity sha512-76Ynm7OXUG5xhOpblhytE7X58oeNSmC8xnNhjWVo8CksHit0U0kO4hfNbPrrYwowLWFgM2n9L176VNx2QaHmtA==
dependencies:
commander "^2.20.0"
source-map "~0.6.1"
source-map-support "~0.5.12"
test-exclude@^5.2.3: test-exclude@^5.2.3:
version "5.2.3" version "5.2.3"
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment