Skip to content

Commit

Permalink
chore: update webpack loaders path on turbopack
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Nov 19, 2024
1 parent fe5ef9b commit 3f86c41
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, TurboLoaderItem[]>

/**
* (`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<string, TurboRuleConfigItemOrShortcut>

Expand Down
2 changes: 1 addition & 1 deletion test/development/basic/hmr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down
2 changes: 1 addition & 1 deletion turbopack/crates/turbopack-core/src/issue/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn emit_unknown_module_type_error(source: Vc<Box<dyn Source>>) {
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(),
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders
Original file line number Diff line number Diff line change
@@ -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
Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#configuring-webpack-loaders

0 comments on commit 3f86c41

Please sign in to comment.