-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
refactor webpack loader execution #4880
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
9 Ignored Deployments
|
✅ This change can build |
|
sokra
force-pushed
the
sokra/advanced-rules
branch
from
May 10, 2023 09:19
8096915
to
cdec744
Compare
jridgewell
suggested changes
May 10, 2023
pub async fn rename_as(self, pattern: &str) -> Result<Self> { | ||
let mut this = self.await?.clone_value(); | ||
this.rename_as(pattern).await?; | ||
Ok(Self::new(Value::new(this))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We could take advantage of the new TaskInput
derive to remove the Value<T>
wrapper.
sokra
force-pushed
the
sokra/advanced-rules
branch
from
May 16, 2023 14:13
a6ac2d0
to
2a4ec5b
Compare
Linux Benchmark for e2d143dClick to view benchmark
|
MacOS Benchmark for e2d143d
Click to view full benchmark
|
jridgewell
reviewed
May 16, 2023
sokra
force-pushed
the
sokra/advanced-rules
branch
from
May 17, 2023 14:13
2a4ec5b
to
5745ebb
Compare
sokra
force-pushed
the
sokra/advanced-rules
branch
from
May 17, 2023 14:23
5745ebb
to
935cdfa
Compare
Linux Benchmark for 6e887f9Click to view benchmark
|
jridgewell
approved these changes
May 17, 2023
MacOS Benchmark for 6e887f9
Click to view full benchmark
|
allow to rename assets and apply pipeline on renamed asset
sokra
force-pushed
the
sokra/advanced-rules
branch
from
May 23, 2023 07:54
935cdfa
to
23eebae
Compare
Linux Benchmark for 04069f0Click to view benchmark
|
MacOS Benchmark for 04069f0
Click to view full benchmark
|
sokra
added a commit
to vercel/next.js
that referenced
this pull request
May 23, 2023
### What? * allow to apply existing pipeline * change webpack loader key to glob for more flexibility * add test cases * add special error message when using the old config syntax Old config: ```js experimental: { turbo: { loaders: { ".mdx": ["mdx-loader"] } } } ``` New config ``` js experimental: { turbo: { rules: { // key is a glob now // normal syntax will treat the result as ecmascript code "*.mdx": ["mdx-loader"], // glob allows more advanced matching "./images/**/*.png": { loaders: ["image-optimize-loader"], // result of loader will be handled in other steps // under the same name/path (here .png) // This will use the existing .png pipeline (static asset) // It might also use other rules matching .png. as: "*" }, "*.generate-image.js": { loaders: ["image-generation-loader"], // It also possible to pass this under a different name // into the pipeline. Here it will treat the result as png image as: "*.png" } } } } ``` ### Why? More flexibility and allowing to use the builtin module handling over non-js types. fixes WEB-1009 ### Turbopack changes * vercel/turborepo#4955 <!-- OJ Kwon - refactor(turbopack-ecmascript): deprecate enable_emotion, enable_styled* --> * vercel/turborepo#4880 <!-- Tobias Koppers - refactor webpack loader execution --> --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
hydRAnger
pushed a commit
to hydRAnger/next.js
that referenced
this pull request
Jun 12, 2023
### What? * allow to apply existing pipeline * change webpack loader key to glob for more flexibility * add test cases * add special error message when using the old config syntax Old config: ```js experimental: { turbo: { loaders: { ".mdx": ["mdx-loader"] } } } ``` New config ``` js experimental: { turbo: { rules: { // key is a glob now // normal syntax will treat the result as ecmascript code "*.mdx": ["mdx-loader"], // glob allows more advanced matching "./images/**/*.png": { loaders: ["image-optimize-loader"], // result of loader will be handled in other steps // under the same name/path (here .png) // This will use the existing .png pipeline (static asset) // It might also use other rules matching .png. as: "*" }, "*.generate-image.js": { loaders: ["image-generation-loader"], // It also possible to pass this under a different name // into the pipeline. Here it will treat the result as png image as: "*.png" } } } } ``` ### Why? More flexibility and allowing to use the builtin module handling over non-js types. fixes WEB-1009 ### Turbopack changes * vercel/turborepo#4955 <!-- OJ Kwon - refactor(turbopack-ecmascript): deprecate enable_emotion, enable_styled* --> * vercel/turborepo#4880 <!-- Tobias Koppers - refactor webpack loader execution --> --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
ForsakenHarmony
pushed a commit
to vercel/next.js
that referenced
this pull request
Jul 25, 2024
### Description * [fix error propagation in ContextCondition](vercel/turborepo@e0a8a54) * [improve JSON deserialization error message](vercel/turborepo@b032330) * [fix glob matching](vercel/turborepo@d868be4) * allow to rename assets and apply pipeline on renamed asset #49535
ForsakenHarmony
pushed a commit
to vercel/next.js
that referenced
this pull request
Jul 29, 2024
### Description * [fix error propagation in ContextCondition](vercel/turborepo@e0a8a54) * [improve JSON deserialization error message](vercel/turborepo@b032330) * [fix glob matching](vercel/turborepo@d868be4) * allow to rename assets and apply pipeline on renamed asset #49535
ForsakenHarmony
pushed a commit
to vercel/next.js
that referenced
this pull request
Aug 1, 2024
### Description * [fix error propagation in ContextCondition](vercel/turborepo@e0a8a54) * [improve JSON deserialization error message](vercel/turborepo@b032330) * [fix glob matching](vercel/turborepo@d868be4) * allow to rename assets and apply pipeline on renamed asset #49535
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
vercel/next.js#49535