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

[turbopack] Use updated RawOutput API #65300

Draft
wants to merge 5 commits into
base: canary
Choose a base branch
from
Draft

[turbopack] Use updated RawOutput API #65300

wants to merge 5 commits into from

Conversation

bgw
Copy link
Member

@bgw bgw commented May 2, 2024

Use updated API suggested by sokra in review on #65223:

#65223 (comment)

Depends on vercel/turbo#8075 (I'll update this PR with a Cargo.toml change after that ships)

@ijjk ijjk added created-by: Turbopack team PRs by the turbopack team Turbopack Related to Turbopack with Next.js. type: next labels May 2, 2024
Copy link
Member Author

bgw commented May 2, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bgw and the rest of your teammates on Graphite Graphite

bgw added 5 commits May 2, 2024 16:47
- `polyfill-nomodule.js` is a pre-built file containing polyfills for
  older browsers (gated by the `<script>` tag `nomodule` attribute).
- The turbopack server needs to emit a raw OutputAsset for this file, so
  that it is copied into the output chunks directory.
- That file needs to be passed into `polyfillFiles`, and preserved when
  we're merging manifests inside of the development server.
Use updated API suggested by sokra in review on #65223:

#65223 (comment)
Base automatically changed from bgw/polyfill-nomodule to canary May 3, 2024 05:15
bgw added a commit to vercel/turbo that referenced this pull request May 8, 2024
### Description

Update `RawOutput` API

Updated API suggested by @sokra in review on #65223:

vercel/next.js#65223 (comment)

Without this change, I don't think this API is useful. This makes the API very similar to `VirtualOutputAsset`.

### Testing Instructions

Tested with vercel/next.js#65300

Closes PACK-3034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Turbopack team PRs by the turbopack team Turbopack Related to Turbopack with Next.js. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants