Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docs: Document default values for turbopack.resolveExtensions #98609

Description

@alexicum

What is the documentation issue?

The resolveExtensions docs say the array replaces the defaults rather than extending them, but never list what the defaults are.

Without that list, users can't safely override the option - dropping an extension breaks resolution in ways that are hard to debug.

Please add the default extensions to the page, or a link to the source where they are defined.

Is there any context that might help us understand?

The docs explicitly warn that the supplied array replaces the defaults rather than extending them:

This overwrites the original resolve extensions with the provided list. Make sure to include the default extensions.

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

https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack#resolving-custom-extensions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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