From 3f86c41cb0afda992f722e23595533678f218a01 Mon Sep 17 00:00:00 2001 From: JamBalaya56562 Date: Tue, 19 Nov 2024 12:56:47 +0900 Subject: [PATCH] chore: update webpack loaders path on turbopack --- packages/next/src/server/config-shared.ts | 4 ++-- test/development/basic/hmr.test.ts | 2 +- turbopack/crates/turbopack-core/src/issue/module.rs | 2 +- .../dynamic-unrelated/issues/Unknown module type-5512c1.txt | 2 +- .../dynamic-unrelated/issues/Unknown module type-faeccc.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/next/src/server/config-shared.ts b/packages/next/src/server/config-shared.ts index 49fece7e9c7c1..21ce6ffb8e2ff 100644 --- a/packages/next/src/server/config-shared.ts +++ b/packages/next/src/server/config-shared.ts @@ -134,14 +134,14 @@ export interface ExperimentalTurboOptions { /** * (`next --turbopack` only) A list of webpack loaders to apply when running with Turbopack. * - * @see [Turbopack Loaders](https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders) + * @see [Turbopack Loaders](https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders) */ loaders?: Record /** * (`next --turbopack` only) A list of webpack loaders to apply when running with Turbopack. * - * @see [Turbopack Loaders](https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders) + * @see [Turbopack Loaders](https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders) */ rules?: Record diff --git a/test/development/basic/hmr.test.ts b/test/development/basic/hmr.test.ts index 4576ceb70e487..e4b548acbe4b4 100644 --- a/test/development/basic/hmr.test.ts +++ b/test/development/basic/hmr.test.ts @@ -858,7 +858,7 @@ describe.each([ Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it. - Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders" + Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders" `) } else { expect(await getRedboxSource(browser)).toMatchInlineSnapshot(` diff --git a/turbopack/crates/turbopack-core/src/issue/module.rs b/turbopack/crates/turbopack-core/src/issue/module.rs index 1b0579a67c633..33332ada6132c 100644 --- a/turbopack/crates/turbopack-core/src/issue/module.rs +++ b/turbopack/crates/turbopack-core/src/issue/module.rs @@ -42,7 +42,7 @@ pub fn emit_unknown_module_type_error(source: Vc>) { description: StyledString::Text( r"This module doesn't have an associated type. Use a known file extension, or register a loader for it. -Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders".into(), +Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders".into(), ) .cell(), } diff --git a/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-5512c1.txt b/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-5512c1.txt index 7a520ae04415e..d05a75d007960 100644 --- a/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-5512c1.txt +++ b/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-5512c1.txt @@ -1,4 +1,4 @@ error - [process module] [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/input/sub/helper.txt Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it. - Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders \ No newline at end of file + Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders diff --git a/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-faeccc.txt b/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-faeccc.txt index f21840e0bc48a..42d0a5a7f675e 100644 --- a/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-faeccc.txt +++ b/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/issues/Unknown module type-faeccc.txt @@ -1,4 +1,4 @@ error - [process module] [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/resolving/dynamic-unrelated/input/sub/README.md Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it. - Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders \ No newline at end of file + Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders