Skip to content

Docs: Matching loaders on resource queries #90560

@coderrshyam

Description

@coderrshyam

What is the documentation issue?

In PR #88644, support for matching loaders on resource queries was added in the canary release. However, there is no documentation explaining how to use this feature with Turbopack.

Is there any context that might help us understand?

There should be clear guidance with examples on how to configure loaders using resource queries and any limitations compared to Webpack.

Also, one question: why does Turbopack require explicit configuration for this, while Webpack seems to handle similar cases automatically?

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions