Unverified Commit ec9ed574 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Remove import type syntax (#25145)

* Remove import type syntax

* Update build-output test
parent 84d5766f
......@@ -8,7 +8,7 @@ import { CompileError } from './compile-error'
import { FatalError } from './fatal-error'
import { getTypeScriptIntent } from './typescript/getTypeScriptIntent'
import type { TypeCheckResult } from './typescript/runTypeCheck'
import { TypeCheckResult } from './typescript/runTypeCheck'
import { writeAppTypeDeclarations } from './typescript/writeAppTypeDeclarations'
import { writeConfigurationDefaults } from './typescript/writeConfigurationDefaults'
......
import path from 'path'
import { Worker } from 'jest-worker'
import * as Log from '../../build/output/log'
import type { CheckReasons, CheckResult } from './config-utils-worker'
import { CheckReasons, CheckResult } from './config-utils-worker'
import { install, shouldLoadWithWebpack5 } from './config-utils-worker'
export { install, shouldLoadWithWebpack5 }
......
import '../next-server/server/node-polyfill-fetch'
import type {
import {
default as Server,
ServerConstructor,
} from '../next-server/server/next-server'
......
......@@ -129,7 +129,7 @@ describe('Build Output', () => {
expect(parseFloat(err404Size)).toBeCloseTo(gz ? 3.06 : 8.15, 1)
expect(err404Size.endsWith('kB')).toBe(true)
expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.4 : 203, 1)
expect(parseFloat(err404FirstLoad)).toBeCloseTo(gz ? 66.5 : 203, 1)
expect(err404FirstLoad.endsWith('kB')).toBe(true)
expect(parseFloat(sharedByAll)).toBeCloseTo(gz ? 63.4 : 195, 1)
......
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