Unverified Commit ccf491dc authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

chore: Update `terser` to `v5.27.0` (#61068)

### What?

Update terser to the latest version.

### Why?

We need
https://github.com/terser/terser/commit/c677e285261a0f115409a42015bd3664c8416534
which adds supports for class static blocks.

### How?

Closes PACK-2285
Fixes #60837
parent 9de7705c
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
"superstruct": "1.0.3", "superstruct": "1.0.3",
"tar": "6.1.15", "tar": "6.1.15",
"taskr": "1.1.0", "taskr": "1.1.0",
"terser": "5.14.1", "terser": "5.27.0",
"terser-webpack-plugin": "5.3.9", "terser-webpack-plugin": "5.3.9",
"text-table": "0.2.0", "text-table": "0.2.0",
"timers-browserify": "2.0.12", "timers-browserify": "2.0.12",
......
This diff is collapsed.
Terser is released under the BSD license:
Copyright 2012-2018 (c) Mihai Bazon <mihai.bazon@gmail.com> Copyright 2012-2018 (c) Mihai Bazon <mihai.bazon@gmail.com>
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
......
...@@ -1392,8 +1392,8 @@ importers: ...@@ -1392,8 +1392,8 @@ importers:
specifier: 1.1.0 specifier: 1.1.0
version: 1.1.0 version: 1.1.0
terser: terser:
specifier: 5.14.1 specifier: 5.27.0
version: 5.14.1 version: 5.27.0
terser-webpack-plugin: terser-webpack-plugin:
specifier: 5.3.9 specifier: 5.3.9
version: 5.3.9(@swc/core@1.3.85)(webpack@5.86.0) version: 5.3.9(@swc/core@1.3.85)(webpack@5.86.0)
...@@ -1510,7 +1510,7 @@ importers: ...@@ -1510,7 +1510,7 @@ importers:
devDependencies: devDependencies:
microbundle: microbundle:
specifier: 0.15.0 specifier: 0.15.0
version: 0.15.0(acorn@8.8.2) version: 0.15.0
packages/next-polyfill-nomodule: packages/next-polyfill-nomodule:
devDependencies: devDependencies:
...@@ -1519,7 +1519,7 @@ importers: ...@@ -1519,7 +1519,7 @@ importers:
version: 3.6.5 version: 3.6.5
microbundle: microbundle:
specifier: 0.15.0 specifier: 0.15.0
version: 0.15.0(acorn@8.8.2) version: 0.15.0
object-assign: object-assign:
specifier: 4.1.1 specifier: 4.1.1
version: 4.1.1 version: 4.1.1
...@@ -1668,7 +1668,7 @@ packages: ...@@ -1668,7 +1668,7 @@ packages:
'@babel/core': 7.22.5 '@babel/core': 7.22.5
dependencies: dependencies:
'@babel/core': 7.22.5 '@babel/core': 7.22.5
'@jridgewell/trace-mapping': 0.3.17 '@jridgewell/trace-mapping': 0.3.19
commander: 4.1.1 commander: 4.1.1
convert-source-map: 1.9.0 convert-source-map: 1.9.0
fs-readdir-recursive: 1.1.0 fs-readdir-recursive: 1.1.0
...@@ -4517,7 +4517,7 @@ packages: ...@@ -4517,7 +4517,7 @@ packages:
dependencies: dependencies:
'@jridgewell/set-array': 1.1.1 '@jridgewell/set-array': 1.1.1
'@jridgewell/sourcemap-codec': 1.4.14 '@jridgewell/sourcemap-codec': 1.4.14
'@jridgewell/trace-mapping': 0.3.17 '@jridgewell/trace-mapping': 0.3.19
/@jridgewell/resolve-uri@3.1.0: /@jridgewell/resolve-uri@3.1.0:
resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==}
...@@ -4527,18 +4527,11 @@ packages: ...@@ -4527,18 +4527,11 @@ packages:
resolution: {integrity: sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==} resolution: {integrity: sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==}
engines: {node: '>=6.0.0'} engines: {node: '>=6.0.0'}
/@jridgewell/source-map@0.3.2:
resolution: {integrity: sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==}
dependencies:
'@jridgewell/gen-mapping': 0.3.1
'@jridgewell/trace-mapping': 0.3.17
dev: true
/@jridgewell/source-map@0.3.3: /@jridgewell/source-map@0.3.3:
resolution: {integrity: sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==} resolution: {integrity: sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==}
dependencies: dependencies:
'@jridgewell/gen-mapping': 0.3.1 '@jridgewell/gen-mapping': 0.3.3
'@jridgewell/trace-mapping': 0.3.17 '@jridgewell/trace-mapping': 0.3.19
/@jridgewell/sourcemap-codec@1.4.14: /@jridgewell/sourcemap-codec@1.4.14:
resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
...@@ -4554,7 +4547,6 @@ packages: ...@@ -4554,7 +4547,6 @@ packages:
dependencies: dependencies:
'@jridgewell/resolve-uri': 3.1.0 '@jridgewell/resolve-uri': 3.1.0
'@jridgewell/sourcemap-codec': 1.4.14 '@jridgewell/sourcemap-codec': 1.4.14
dev: true
/@lerna/add@4.0.0: /@lerna/add@4.0.0:
resolution: {integrity: sha512-cpmAH1iS3k8JBxNvnMqrGTTjbY/ZAiKa1ChJzFevMYY3eeqbvhsBKnBcxjRXtdrJ6bd3dCQM+ZtK+0i682Fhng==} resolution: {integrity: sha512-cpmAH1iS3k8JBxNvnMqrGTTjbY/ZAiKa1ChJzFevMYY3eeqbvhsBKnBcxjRXtdrJ6bd3dCQM+ZtK+0i682Fhng==}
...@@ -17276,7 +17268,7 @@ packages: ...@@ -17276,7 +17268,7 @@ packages:
engines: {node: '>= 0.6'} engines: {node: '>= 0.6'}
dev: true dev: true
/microbundle@0.15.0(acorn@8.8.2): /microbundle@0.15.0:
resolution: {integrity: sha512-EkFst5ntLXoQGewkvga/Kd72RcN7IuJRl5ivLihJSbvLfJQo8LDS0n9X0q81vegiC59vhtKIM6qjrl1fOAtuGw==} resolution: {integrity: sha512-EkFst5ntLXoQGewkvga/Kd72RcN7IuJRl5ivLihJSbvLfJQo8LDS0n9X0q81vegiC59vhtKIM6qjrl1fOAtuGw==}
hasBin: true hasBin: true
dependencies: dependencies:
...@@ -17318,13 +17310,12 @@ packages: ...@@ -17318,13 +17310,12 @@ packages:
rollup-plugin-typescript2: 0.29.0(rollup@2.35.1)(typescript@4.8.2) rollup-plugin-typescript2: 0.29.0(rollup@2.35.1)(typescript@4.8.2)
rollup-plugin-visualizer: 5.6.0(rollup@2.35.1) rollup-plugin-visualizer: 5.6.0(rollup@2.35.1)
sade: 1.7.4 sade: 1.7.4
terser: 5.10.0(acorn@8.8.2) terser: 5.27.0
tiny-glob: 0.2.8 tiny-glob: 0.2.8
tslib: 2.4.0 tslib: 2.4.0
typescript: 4.8.2 typescript: 4.8.2
transitivePeerDependencies: transitivePeerDependencies:
- '@types/babel__core' - '@types/babel__core'
- acorn
- supports-color - supports-color
- ts-node - ts-node
dev: true dev: true
...@@ -22100,7 +22091,7 @@ packages: ...@@ -22100,7 +22091,7 @@ packages:
jest-worker: 26.6.2 jest-worker: 26.6.2
rollup: 2.35.1 rollup: 2.35.1
serialize-javascript: 4.0.0 serialize-javascript: 4.0.0
terser: 5.14.1 terser: 5.27.0
dev: true dev: true
/rollup-plugin-typescript2@0.29.0(rollup@2.35.1)(typescript@4.8.2): /rollup-plugin-typescript2@0.29.0(rollup@2.35.1)(typescript@4.8.2):
...@@ -23685,38 +23676,11 @@ packages: ...@@ -23685,38 +23676,11 @@ packages:
jest-worker: 27.5.1 jest-worker: 27.5.1
schema-utils: 3.2.0 schema-utils: 3.2.0
serialize-javascript: 6.0.1 serialize-javascript: 6.0.1
terser: 5.17.7 terser: 5.27.0
webpack: 5.86.0(@swc/core@1.3.85) webpack: 5.86.0(@swc/core@1.3.85)
/terser@5.10.0(acorn@8.8.2): /terser@5.27.0:
resolution: {integrity: sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==} resolution: {integrity: sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==}
engines: {node: '>=10'}
hasBin: true
peerDependencies:
acorn: ^8.5.0
peerDependenciesMeta:
acorn:
optional: true
dependencies:
acorn: 8.8.2
commander: 2.20.0
source-map: 0.7.4
source-map-support: 0.5.20
dev: true
/terser@5.14.1:
resolution: {integrity: sha512-+ahUAE+iheqBTDxXhTisdA8hgvbEG1hHOQ9xmNjeUJSoi6DU/gMrKNcfZjHkyY6Alnuyc+ikYJaxxfHkT3+WuQ==}
engines: {node: '>=10'}
hasBin: true
dependencies:
'@jridgewell/source-map': 0.3.2
acorn: 8.8.2
commander: 2.20.3
source-map-support: 0.5.20
dev: true
/terser@5.17.7:
resolution: {integrity: sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==}
engines: {node: '>=10'} engines: {node: '>=10'}
hasBin: true hasBin: true
dependencies: dependencies:
......
class TestClass {
static text = 'hello world'
}
export default function Page() {
return (
<div>
<p>{TestClass.text}</p>
</div>
)
}
import { createNextDescribe } from 'e2e-utils'
createNextDescribe(
'terser-class-static-blocks',
{
files: __dirname,
nextConfig: {
swcMinify: false,
},
},
({ next }) => {
it('should work using cheerio', async () => {
const $ = await next.render$('/')
expect($('p').text()).toBe('hello world')
})
}
)
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
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