Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update webpack loaders path on turbopack #72600

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading