Skip to content

Commit

Permalink
Remove import type syntax (#25145)
Browse files Browse the repository at this point in the history
* Remove import type syntax

* Update build-output test
  • Loading branch information
ijjk committed May 14, 2021
1 parent 84d5766 commit ec9ed57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/next/lib/verifyTypeScriptSetup.ts
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion packages/next/next-server/server/config-utils.ts
@@ -1,7 +1,7 @@
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 }
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/next.ts
@@ -1,5 +1,5 @@
import '../next-server/server/node-polyfill-fetch'
import type {
import {
default as Server,
ServerConstructor,
} from '../next-server/server/next-server'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/build-output/test/index.test.js
Expand Up @@ -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)
Expand Down

0 comments on commit ec9ed57

Please sign in to comment.