Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
3094016c
Unverified
Commit
3094016c
authored
Apr 26, 2020
by
JJ Kasper
Committed by
GitHub
Apr 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Downgrade terser to fix invalid minifying (#12178)
parent
6ce3c7b4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
webpack-config.ts
packages/next/build/webpack-config.ts
+1
-2
bundle.min.js
packages/next/compiled/terser/bundle.min.js
+1
-1
package.json
packages/next/package.json
+1
-1
yarn.lock
yarn.lock
+13
-4
No files found.
packages/next/build/webpack-config.ts
View file @
3094016c
...
@@ -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
,
},
},
...
...
packages/next/compiled/terser/bundle.min.js
View file @
3094016c
This diff is collapsed.
Click to expand it.
packages/next/package.json
View file @
3094016c
...
@@ -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"
,
...
...
yarn.lock
View file @
3094016c
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment