Skip to content

Commit 1e019f5

Browse files
committed
Update imports
1 parent 9d4302b commit 1e019f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+48
-48
lines changed

packages/next/src/build/webpack-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const browserNonTranspileModules = [
131131
const precompileRegex = /[\\/]next[\\/]dist[\\/]compiled[\\/]/
132132

133133
const asyncStoragesRegex =
134-
/next[\\/]dist[\\/](esm[\\/])?(client[\\/]components|server[\\/]app-render|)[\\/](work-async-storage|action-async-storage|work-unit-async-storage)/
134+
/next[\\/]dist[\\/](esm[\\/])?server[\\/]app-render[\\/](work-async-storage|action-async-storage|work-unit-async-storage)/
135135

136136
// Support for NODE_PATH
137137
const nodePathList = (process.env.NODE_PATH || '')

packages/next/src/client/components/bailout-to-client-rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'
2-
import { workAsyncStorage } from './work-async-storage.external'
2+
import { workAsyncStorage } from '../../server/app-render/work-async-storage.external'
33

44
export function bailoutToClientRendering(reason: string): void | never {
55
const workStore = workAsyncStorage.getStore()

packages/next/src/client/components/client-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function ClientPageRoot({
2727
}) {
2828
if (typeof window === 'undefined') {
2929
const { workAsyncStorage } =
30-
require('./work-async-storage.external') as typeof import('./work-async-storage.external')
30+
require('../../server/app-render/work-async-storage.external') as typeof import('../../server/app-render/work-async-storage.external')
3131

3232
let clientSearchParams: Promise<ParsedUrlQuery>
3333
let clientParams: Promise<Params>

packages/next/src/client/components/client-segment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function ClientSegmentRoot({
2626
}) {
2727
if (typeof window === 'undefined') {
2828
const { workAsyncStorage } =
29-
require('./work-async-storage.external') as typeof import('./work-async-storage.external')
29+
require('../../server/app-render/work-async-storage.external') as typeof import('../../server/app-render/work-async-storage.external')
3030

3131
let clientParams: Promise<Params>
3232
// We are going to instrument the searchParams prop with tracking for the

packages/next/src/client/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { type JSX } from 'react'
44
import { useUntrackedPathname } from './navigation-untracked'
55
import { isNextRouterError } from './is-next-router-error'
66
import { handleHardNavError } from './nav-failure-handler'
7-
import { workAsyncStorage } from './work-async-storage.external'
7+
import { workAsyncStorage } from '../../server/app-render/work-async-storage.external'
88

99
const styles = {
1010
error: {

packages/next/src/client/components/navigation-untracked.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function hasFallbackRouteParams() {
1111
if (typeof window === 'undefined') {
1212
// AsyncLocalStorage should not be included in the client bundle.
1313
const { workAsyncStorage } =
14-
require('./work-async-storage.external') as typeof import('./work-async-storage.external')
14+
require('../../server/app-render/work-async-storage.external') as typeof import('../../server/app-render/work-async-storage.external')
1515

1616
const workStore = workAsyncStorage.getStore()
1717
if (!workStore) return false

packages/next/src/client/components/redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { actionAsyncStorage } from './action-async-storage.external'
1+
import { actionAsyncStorage } from '../../server/app-render/action-async-storage.external'
22
import { RedirectStatusCode } from './redirect-status-code'
33

44
const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT'

packages/next/src/export/routes/app-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-cs
2121
import { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'
2222
import { NEXT_IS_PRERENDER_HEADER } from '../../client/components/app-router-headers'
2323
import type { FetchMetrics } from '../../server/base-http'
24-
import type { WorkStore } from '../../client/components/work-async-storage.external'
24+
import type { WorkStore } from '../../server/app-render/work-async-storage.external'
2525
import type { FallbackRouteParams } from '../../server/request/fallback-params'
2626

2727
export const enum ExportedAppPageFiles {

packages/next/src/lib/metadata/metadata-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AppRenderContext } from '../../server/app-render/app-render'
22
import type { MetadataContext } from './types/resolvers'
3-
import type { WorkStore } from '../../client/components/work-async-storage.external'
3+
import type { WorkStore } from '../../server/app-render/work-async-storage.external'
44
import { trackFallbackParamAccessed } from '../../server/app-render/dynamic-rendering'
55

66
export function createMetadataContext(

packages/next/src/lib/metadata/metadata.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import type {
3232
} from './types/metadata-interface'
3333
import { isNotFoundError } from '../../client/components/not-found'
3434
import type { MetadataContext } from './types/resolvers'
35-
import type { WorkStore } from '../../client/components/work-async-storage.external'
35+
import type { WorkStore } from '../../server/app-render/work-async-storage.external'
3636

3737
// Use a promise to share the status of the metadata resolving,
3838
// returning two components `MetadataTree` and `MetadataOutlet`

0 commit comments

Comments
 (0)