Skip to content

Commit 5d55a62

Browse files
committed
change tsconfig target to esnext
1 parent acd5fbd commit 5d55a62

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/next/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"strict": true,
44
"module": "esnext",
5-
"target": "ES2017",
5+
"target": "esnext",
66
"esModuleInterop": true,
77
"moduleResolution": "node",
88
"jsx": "react"

test/integration/build-output/test/index.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,16 @@ describe('Build Output', () => {
123123
)
124124
expect(indexSize.endsWith(' B')).toBe(true)
125125

126-
expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 66.4 : 205, 1)
126+
expect(parseFloat(indexFirstLoad)).toBeCloseTo(gz ? 64 : 197, 1)
127127
expect(indexFirstLoad.endsWith('kB')).toBe(true)
128128

129-
expect(parseFloat(err404Size)).toBeCloseTo(gz ? 195 : 267, 1)
130-
expect(err404Size.endsWith(' B')).toBe(true)
129+
expect(parseFloat(err404Size)).toBeCloseTo(gz ? 3.17 : 8.49, 1)
130+
expect(err404Size.endsWith('kB')).toBe(true)
131131

132-
expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.3 : 205, 1)
132+
expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.9 : 205, 1)
133133
expect(err404FirstLoad.endsWith('kB')).toBe(true)
134134

135-
expect(parseFloat(sharedByAll)).toBeCloseTo(gz ? 66.1 : 205, 1)
135+
expect(parseFloat(sharedByAll)).toBeCloseTo(gz ? 63.8 : 196, 1)
136136
expect(sharedByAll.endsWith('kB')).toBe(true)
137137

138138
const appSizeValue = _appSize.endsWith('kB')
@@ -149,7 +149,7 @@ describe('Build Output', () => {
149149
true
150150
)
151151

152-
expect(parseFloat(mainSize)).toBeCloseTo(gz ? 22.5 : 71.2, 1)
152+
expect(parseFloat(mainSize)).toBeCloseTo(gz ? 20.2 : 62.9, 1)
153153
expect(mainSize.endsWith('kB')).toBe(true)
154154

155155
expect(parseFloat(frameworkSize)).toBeCloseTo(gz ? 42.0 : 130, 1)

test/integration/fallback-modules/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Build Output', () => {
4949
expect(indexSize.endsWith('kB')).toBe(true)
5050

5151
expect(parseFloat(indexFirstLoad)).toBeLessThanOrEqual(
52-
process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 70.5 : 68.9
52+
process.env.NEXT_PRIVATE_TEST_WEBPACK4_MODE ? 68 : 67.9
5353
)
5454
expect(parseFloat(indexFirstLoad)).toBeGreaterThanOrEqual(60)
5555
expect(indexFirstLoad.endsWith('kB')).toBe(true)

test/integration/size-limit/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ describe('Production response size', () => {
8585
const delta = responseSizesBytes / 1024
8686

8787
// Expected difference: < 0.5
88-
expect(delta).toBeCloseTo(294.6, 0)
88+
expect(delta).toBeCloseTo(286.8, 0)
8989
})
9090
})

0 commit comments

Comments
 (0)