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

add custom_extensions to resolve options context #7367

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Feb 13, 2024

Description

enables to customize extensions in next.js

Testing Instructions

Closes PACK-2482

@sokra sokra requested a review from a team as a code owner February 13, 2024 16:44
@turbo-orchestrator turbo-orchestrator bot added area: docs Improvements or additions to documentation created-by: turbopack owned-by: turbopack labels Feb 13, 2024
Copy link

vercel bot commented Feb 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am
rust-docs ❌ Failed (Inspect) Feb 15, 2024 11:45am
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 11:45am

Copy link
Contributor

github-actions bot commented Feb 13, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Feb 13, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

module.exports = {
experimental: {
turbo: {
resolveExtensions: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a good idea to move functionality like this to a shared field that both webpack and turbopack read from

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way, this needs to be added to the typescript types

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right, this isn't the next.js repo yet, we should really move the docs over

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original comment still stands though, maybe this should be something like experimental.compiler.resolveExtensions?

ForsakenHarmony

This comment was marked as outdated.

Co-authored-by: Will Binns-Smith <wbinnssmith@gmail.com>
@sokra sokra deleted the sokra/resolve-extensions branch February 15, 2024 11:49
sokra added a commit to vercel/next.js that referenced this pull request Feb 15, 2024
…#62092)

### What?

see vercel/turborepo#7398

### Turbopack Changes

* vercel/turborepo#7367 <!-- Tobias Koppers - add
custom_extensions to resolve options context -->
* vercel/turborepo#7398 <!-- Tobias Koppers - add
support for dynamic requests in require() and import() -->


Closes PACK-2513
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

enables to customize extensions in next.js

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2482

---------

Co-authored-by: Will Binns-Smith <wbinnssmith@gmail.com>
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

enables to customize extensions in next.js

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2482

---------

Co-authored-by: Will Binns-Smith <wbinnssmith@gmail.com>
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

enables to customize extensions in next.js

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2482

---------

Co-authored-by: Will Binns-Smith <wbinnssmith@gmail.com>
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

enables to customize extensions in next.js

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2482

---------

Co-authored-by: Will Binns-Smith <wbinnssmith@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation created-by: turbopack owned-by: turbopack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants