Skip to content

Commit

Permalink
Update build step
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Dec 28, 2022
1 parent 60a62b6 commit bf492f4
Show file tree
Hide file tree
Showing 14 changed files with 328 additions and 400 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/build/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
import { getPageStaticInfo } from './analysis/get-page-static-info'
import { normalizePathSep } from '../shared/lib/page-path/normalize-path-sep'
import { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'
import { ServerRuntime } from '../types'
import { ServerRuntime } from '../../types'
import { normalizeAppPath } from '../shared/lib/router/utils/app-paths'
import { encodeMatchers } from './webpack/loaders/next-middleware-loader'
import { EdgeFunctionLoaderOptions } from './webpack/loaders/next-edge-function-loader'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FontLoader } from '../../../../font'
import type { FontLoader } from '../../../../../font'

import { promises as fs } from 'fs'
import path from 'path'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AdjustFontFallback } from '../../../../font'
import type { AdjustFontFallback } from '../../../../../font'
import postcss, { Declaration } from 'postcss'

const postcssNextFontPlugin = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
GetServerSideProps,
GetStaticPaths,
GetStaticProps,
} from '../../../../types'
} from '../../../../../types'
import type { BaseNextRequest } from '../../../../server/base-http'
import type { __ApiPreviewProps } from '../../../../server/api-utils'

Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/cli/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import isError from '../lib/is-error'
import { getProjectDir } from '../lib/get-project-dir'
import { CONFIG_FILES, PHASE_DEVELOPMENT_SERVER } from '../shared/lib/constants'
import path from 'path'
import type { NextConfig } from '../types'
import type { NextConfig } from '../../types'
import type { NextConfigComplete } from '../server/config-shared'
import { traceGlobals } from '../trace/shared'
import cluster from 'cluster'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ServerRuntime } from '../types'
import type { ServerRuntime } from '../../types'

// Patterns to detect middleware files
export const MIDDLEWARE_FILENAME = 'middleware'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/lib/is-edge-runtime.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ServerRuntime } from '../types'
import { ServerRuntime } from '../../types'
import { SERVER_RUNTIME } from './constants'

export function isEdgeRuntime(value?: string): value is ServerRuntime {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'http'
import type { LoadComponentsReturnType } from './load-components'
import type { ServerRuntime } from '../types'
import type { ServerRuntime } from '../../types'
import type { FontLoaderManifest } from '../build/webpack/plugins/font-loader-manifest-plugin'

// Import builtin react directly to avoid require cache conflicts
Expand Down
Loading

0 comments on commit bf492f4

Please sign in to comment.