GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: support array values for devtool option by hai-x · Pull Request #20191 · webpack/webpack Conversation
|
🦋 Changeset detectedLatest commit: 4f2bf33 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This PR is packaged and the instant preview is available (b0e0e4c). Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@b0e0e4c
yarn add -D webpack@https://pkg.pr.new/webpack@b0e0e4c
pnpm add -D webpack@https://pkg.pr.new/webpack@b0e0e4c |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
CodSpeed Performance ReportMerging #20191 will not alter performanceComparing Summary
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let's add a test cases
Another problem - we should allow to set CSS source map values by user too, like hidden-source-map and etc
So I am think about to allow devtool accepts arrays, but because we can't change devtool type for webpack@5, let's add an internal option (devtoolByTypes, maybe better name in normalization) and store source map values for types there, i.e.
devtool can be string | { test: Rule, type: "source-map" | "hidden-source-map" | "etc" }, but then in normalization we found a JS value and set it to devtool (to keep devtool a string), technically we can just take the first value of an array (but feel free to think here)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
cb94128 to
4ab8b46
Compare
| : /\.((c|m)?js|css)($|\?)/i; | ||
|
|
||
| new Plugin({ | ||
| test: evalWrapped ? undefined : assetExt, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In EvalSourceMapDevToolPlugin, test is for module resources rather than asset file. To avoid breaking logic for .ts modules, we leave it as undefined.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
57b0fae to
8f82a04
Compare
e188e1c to
222c667
Compare
| css: true, | ||
| outputModule: true | ||
| }, | ||
| devtool: "source-map", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@hai-x Let's add a test case where we set it to devtool: [...]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review. Let we re-use this test case here and just change the value to devtool: [...].
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@hai-x Also let's rebase and we can merge 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3d7f4ad to
96dfa25
Compare
|
@hai-x let's fix failed test, just need to update snapshots 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
96dfa25 to
08a8d6b
Compare
08a8d6b to
9b1c728
Compare
|
Thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.