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
use loader-utils 2 for resolve-url-loader to fix ./data:
urls in sass
#31134
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
sokra
changed the title
use loader-utils 2 for resolve-url-loader to fix
use loader-utils 2 for resolve-url-loader to fix Nov 8, 2021
./data:
urls./data:
urls in sass
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sokra
force-pushed
the
bugfix/sass-url
branch
from
November 8, 2021 11:10
0e72e57
to
c229f59
Compare
upgrade to loader-utils 3.1.2 for hash fix
sokra
force-pushed
the
bugfix/sass-url
branch
from
November 8, 2021 11:15
c229f59
to
840f669
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sokra
requested review from
huozhi,
ijjk,
padmaia,
shuding,
styfle and
timneutkens
as code owners
November 8, 2021 12:18
timneutkens
approved these changes
Nov 8, 2021
This comment has been minimized.
This comment has been minimized.
timneutkens
previously approved these changes
Nov 8, 2021
This comment has been minimized.
This comment has been minimized.
Failing test suitesCommit: 09cb84d test/integration/scss/test/index.test.js
Expand output● SCSS Support › Data Urls › should've emitted expected files
|
This comment has been minimized.
This comment has been minimized.
ijjk
approved these changes
Nov 8, 2021
This comment has been minimized.
This comment has been minimized.
styfle
reviewed
Nov 8, 2021
externals['loader-utils'] = 'next/dist/compiled/loader-utils' | ||
export async function ncc_loader_utils(task, opts) { | ||
externals['loader-utils'] = 'error loader-utils version not specified' | ||
externals['loader-utils2'] = 'next/dist/compiled/loader-utils2' |
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.
Suggested change
externals['loader-utils2'] = 'next/dist/compiled/loader-utils2' | |
// eslint-disable-next-line camelcase | |
externals['loader-utils2'] = 'next/dist/compiled/loader-utils2' |
You might need another eslint comment
styfle
approved these changes
Nov 8, 2021
This comment has been minimized.
This comment has been minimized.
Stats from current PRDefault Build (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
buildDuration | 24.2s | 24.4s | |
buildDurationCached | 5s | 4.9s | -85ms |
nodeModulesSize | 332 MB | 332 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 4.308 | 4.252 | -0.06 |
/ avg req/sec | 580.26 | 587.89 | +7.63 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 2.172 | 2.236 | |
/error-in-render avg req/sec | 1151.05 | 1117.9 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
450.HASH.js gzip | 179 B | 179 B | ✓ |
framework-HASH.js gzip | 42.2 kB | 42.2 kB | ✓ |
main-HASH.js gzip | 28.1 kB | 28.1 kB | ✓ |
webpack-HASH.js gzip | 1.45 kB | 1.45 kB | -1 B |
Overall change | 71.9 kB | 71.9 kB | -1 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
_app-HASH.js gzip | 1.23 kB | 1.23 kB | ✓ |
_error-HASH.js gzip | 194 B | 194 B | ✓ |
amp-HASH.js gzip | 312 B | 312 B | ✓ |
css-HASH.js gzip | 327 B | 327 B | ✓ |
dynamic-HASH.js gzip | 2.38 kB | 2.38 kB | ✓ |
head-HASH.js gzip | 350 B | 350 B | ✓ |
hooks-HASH.js gzip | 635 B | 635 B | ✓ |
image-HASH.js gzip | 4.44 kB | 4.44 kB | ✓ |
index-HASH.js gzip | 263 B | 263 B | ✓ |
link-HASH.js gzip | 1.87 kB | 1.87 kB | ✓ |
routerDirect..HASH.js gzip | 321 B | 321 B | ✓ |
script-HASH.js gzip | 383 B | 383 B | ✓ |
withRouter-HASH.js gzip | 318 B | 318 B | ✓ |
334f979574ae..6f4.css gzip | 106 B | 107 B | |
Overall change | 13.1 kB | 13.1 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
_buildManifest.js gzip | 459 B | 460 B | |
Overall change | 459 B | 460 B |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
index.html gzip | 522 B | 523 B | |
link.html gzip | 535 B | 536 B | |
withRouter.html gzip | 516 B | 518 B | |
Overall change | 1.57 kB | 1.58 kB |
Diffs
Diff for _buildManifest.js
@@ -4,8 +4,8 @@ self.__BUILD_MANIFEST = {
"/_error": ["static\u002Fchunks\u002Fpages\u002F_error-97db2c91e74bb63f.js"],
"/amp": ["static\u002Fchunks\u002Fpages\u002Famp-8c7b17a56b7abb6e.js"],
"/css": [
- "static\u002Fcss\u002F7edf9ee7c3885268.css",
- "static\u002Fchunks\u002Fpages\u002Fcss-99ad492aad2c14e4.js"
+ "static\u002Fcss\u002F94fdbc56eafa2039.css",
+ "static\u002Fchunks\u002Fpages\u002Fcss-deb2f2a41a5bf511.js"
],
"/dynamic": [
"static\u002Fchunks\u002Fpages\u002Fdynamic-0ead1841ed0002db.js"
Diff for css-HASH.js
@@ -50,7 +50,7 @@
/***/ 3350: /***/ function(module) {
// extracted by mini-css-extract-plugin
- module.exports = { helloWorld: "css_helloWorld__2Fhmt" };
+ module.exports = { helloWorld: "css_helloWorld__qqNwY" };
/***/
}
Diff for webpack-HASH.js
@@ -171,7 +171,7 @@
/******/ // This function allow to reference all chunks
/******/ __webpack_require__.miniCssF = function(chunkId) {
/******/ // return url for filenames based on template
- /******/ return "static/css/" + "7edf9ee7c3885268" + ".css";
+ /******/ return "static/css/" + "94fdbc56eafa2039" + ".css";
/******/
};
/******/
Diff for 7edf9ee7c3885268.css
@@ -1,4 +1,4 @@
-.css_helloWorld__2Fhmt {
+.css_helloWorld__qqNwY {
color: green;
background: url(/_next/static/media/nextjs.cae0b805.png);
}
Diff for index.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
Diff for link.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
Diff for withRouter.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
Default Build with SWC (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
buildDuration | 27.5s | 27.4s | -83ms |
buildDurationCached | 5s | 4.9s | -27ms |
nodeModulesSize | 332 MB | 332 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 4.307 | 4.375 | |
/ avg req/sec | 580.49 | 571.39 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 2.201 | 2.151 | -0.05 |
/error-in-render avg req/sec | 1136.04 | 1162.46 | +26.42 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
450.HASH.js gzip | 179 B | 179 B | ✓ |
framework-HASH.js gzip | 42.3 kB | 42.3 kB | ✓ |
main-HASH.js gzip | 28.2 kB | 28.2 kB | ✓ |
webpack-HASH.js gzip | 1.43 kB | 1.43 kB | -1 B |
Overall change | 72.1 kB | 72.1 kB | -1 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
_app-HASH.js gzip | 1.22 kB | 1.22 kB | ✓ |
_error-HASH.js gzip | 180 B | 180 B | ✓ |
amp-HASH.js gzip | 305 B | 305 B | ✓ |
css-HASH.js gzip | 321 B | 321 B | ✓ |
dynamic-HASH.js gzip | 2.38 kB | 2.38 kB | ✓ |
head-HASH.js gzip | 342 B | 342 B | ✓ |
hooks-HASH.js gzip | 622 B | 622 B | ✓ |
image-HASH.js gzip | 4.46 kB | 4.46 kB | ✓ |
index-HASH.js gzip | 256 B | 256 B | ✓ |
link-HASH.js gzip | 1.91 kB | 1.91 kB | ✓ |
routerDirect..HASH.js gzip | 314 B | 314 B | ✓ |
script-HASH.js gzip | 375 B | 375 B | ✓ |
withRouter-HASH.js gzip | 309 B | 309 B | ✓ |
334f979574ae..6f4.css gzip | 106 B | 107 B | |
Overall change | 13.1 kB | 13.1 kB |
Client Build Manifests Overall decrease ✓
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
_buildManifest.js gzip | 460 B | 459 B | -1 B |
Overall change | 460 B | 459 B | -1 B |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | vercel/next.js bugfix/sass-url | Change | |
---|---|---|---|
index.html gzip | 522 B | 523 B | |
link.html gzip | 535 B | 535 B | ✓ |
withRouter.html gzip | 516 B | 517 B | |
Overall change | 1.57 kB | 1.57 kB |
Diffs
Diff for _buildManifest.js
@@ -4,8 +4,8 @@ self.__BUILD_MANIFEST = {
"/_error": ["static\u002Fchunks\u002Fpages\u002F_error-97db2c91e74bb63f.js"],
"/amp": ["static\u002Fchunks\u002Fpages\u002Famp-8c7b17a56b7abb6e.js"],
"/css": [
- "static\u002Fcss\u002F7edf9ee7c3885268.css",
- "static\u002Fchunks\u002Fpages\u002Fcss-99ad492aad2c14e4.js"
+ "static\u002Fcss\u002F94fdbc56eafa2039.css",
+ "static\u002Fchunks\u002Fpages\u002Fcss-deb2f2a41a5bf511.js"
],
"/dynamic": [
"static\u002Fchunks\u002Fpages\u002Fdynamic-0ead1841ed0002db.js"
Diff for css-HASH.js
@@ -50,7 +50,7 @@
/***/ 3350: /***/ function(module) {
// extracted by mini-css-extract-plugin
- module.exports = { helloWorld: "css_helloWorld__2Fhmt" };
+ module.exports = { helloWorld: "css_helloWorld__qqNwY" };
/***/
}
Diff for webpack-HASH.js
@@ -171,7 +171,7 @@
/******/ // This function allow to reference all chunks
/******/ __webpack_require__.miniCssF = function(chunkId) {
/******/ // return url for filenames based on template
- /******/ return "static/css/" + "7edf9ee7c3885268" + ".css";
+ /******/ return "static/css/" + "94fdbc56eafa2039" + ".css";
/******/
};
/******/
Diff for 7edf9ee7c3885268.css
@@ -1,4 +1,4 @@
-.css_helloWorld__2Fhmt {
+.css_helloWorld__qqNwY {
color: green;
background: url(/_next/static/media/nextjs.cae0b805.png);
}
Diff for index.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
Diff for link.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
Diff for withRouter.html
@@ -11,7 +11,7 @@
src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"
></script>
<script
- src="/_next/static/chunks/webpack-43980cc4f59eb55b.js"
+ src="/_next/static/chunks/webpack-8244d589778df4b1.js"
defer=""
></script>
<script
This was referenced Nov 9, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
upgrade to loader-utils 3.1.2 for hash fix
fixes #31016
fixes #30998