diff --git a/packages/next/build/utils.ts b/packages/next/build/utils.ts index dff8c03d18ebe..898ab9911bbda 100644 --- a/packages/next/build/utils.ts +++ b/packages/next/build/utils.ts @@ -26,7 +26,7 @@ import { GetStaticPaths } from 'next/types' import { denormalizePagePath } from '../next-server/server/normalize-page-path' import { BuildManifest } from '../next-server/server/get-page-files' import { removePathTrailingSlash } from '../client/normalize-trailing-slash' -import type { UnwrapPromise } from '../lib/coalesced-function' +import { UnwrapPromise } from '../lib/coalesced-function' import { normalizeLocalePath } from '../next-server/lib/i18n/normalize-locale-path' const fileGzipStats: { [k: string]: Promise } = {} diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index d3b6eed4742c1..5310210cbd757 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -8,7 +8,7 @@ import semver from 'next/dist/compiled/semver' import TerserPlugin from './webpack/plugins/terser-webpack-plugin/src/index.js' import path from 'path' import webpack from 'webpack' -import type { Configuration } from 'webpack' +import { Configuration } from 'webpack' import { DOT_NEXT_ALIAS, NEXT_PROJECT_ROOT, diff --git a/packages/next/client/index.tsx b/packages/next/client/index.tsx index 4ba0353274aea..de8b9b5b77723 100644 --- a/packages/next/client/index.tsx +++ b/packages/next/client/index.tsx @@ -5,8 +5,8 @@ import ReactDOM from 'react-dom' import { HeadManagerContext } from '../next-server/lib/head-manager-context' import mitt from '../next-server/lib/mitt' import { RouterContext } from '../next-server/lib/router-context' -import type Router from '../next-server/lib/router/router' -import type { +import Router from '../next-server/lib/router/router' +import { AppComponent, AppProps, PrivateRouteInfo, @@ -15,7 +15,7 @@ import { delBasePath, hasBasePath } from '../next-server/lib/router/router' import { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic' import * as querystring from '../next-server/lib/router/utils/querystring' import * as envConfig from '../next-server/lib/runtime-config' -import type { NEXT_DATA } from '../next-server/lib/utils' +import { NEXT_DATA } from '../next-server/lib/utils' import { getURL, loadGetInitialProps, ST } from '../next-server/lib/utils' import initHeadManager from './head-manager' import PageLoader, { StyleSheetTuple } from './page-loader' diff --git a/packages/next/client/page-loader.ts b/packages/next/client/page-loader.ts index b4588146f34e0..01d1350a0644e 100644 --- a/packages/next/client/page-loader.ts +++ b/packages/next/client/page-loader.ts @@ -1,5 +1,5 @@ import { ComponentType } from 'react' -import type { ClientSsgManifest } from '../build' +import { ClientSsgManifest } from '../build' import { addBasePath, addLocale, diff --git a/packages/next/client/route-loader.ts b/packages/next/client/route-loader.ts index 1f89b7e8a5bc0..ce3073a5a348c 100644 --- a/packages/next/client/route-loader.ts +++ b/packages/next/client/route-loader.ts @@ -1,5 +1,5 @@ import { ComponentType } from 'react' -import type { ClientBuildManifest } from '../build/webpack/plugins/build-manifest-plugin' +import { ClientBuildManifest } from '../build/webpack/plugins/build-manifest-plugin' import getAssetPathFromRoute from '../next-server/lib/router/utils/get-asset-path-from-route' import requestIdleCallback from './request-idle-callback' diff --git a/packages/next/export/index.ts b/packages/next/export/index.ts index 5ec3e97ab531c..2bbe98b2b74e7 100644 --- a/packages/next/export/index.ts +++ b/packages/next/export/index.ts @@ -43,7 +43,7 @@ import { } from '../next-server/server/normalize-page-path' import { loadEnvConfig } from '@next/env' import { PrerenderManifest } from '../build' -import type exportPage from './worker' +import exportPage from './worker' import { PagesManifest } from '../build/webpack/plugins/pages-manifest-plugin' import { getPagePath } from '../next-server/server/require' diff --git a/packages/next/server/hot-middleware.ts b/packages/next/server/hot-middleware.ts index 31d2bc906b49d..e6fbc497476a9 100644 --- a/packages/next/server/hot-middleware.ts +++ b/packages/next/server/hot-middleware.ts @@ -21,8 +21,8 @@ // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -import type webpack from 'webpack' -import type http from 'http' +import webpack from 'webpack' +import http from 'http' export class WebpackHotMiddleware { eventStream: EventStream