3a03f50d69
### What? Modify webpack specific assertion to work for turbopack, too. ### Why? The actual content of CSS files is identical. Webpack CSS: ``` /*!***************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ../../../../packages/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!../../../../packages/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./styles/global.css ***! \***************************************************************************************************************************************************************************************************************************************************************************/ .bold { font-weight: bold; } /*!***********************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ../../../../packages/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!../../../../packages/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./app/style.css ***! \***********************************************************************************************************************************************************************************************************************************************************************/ body { font-size: large; } .not-found { color: rgb(210, 105, 30); /* chocolate */ } ``` ``` /*!****************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ../../../../packages/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!../../../../packages/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./app/hmr/global.css ***! \****************************************************************************************************************************************************************************************************************************************************************************/ body { background: gray; } ``` Turbopack CSS: ``` /* [project]/test/e2e/app-dir/app-css/styles/global.css [app-client] (css) */ .bold { font-weight: bold; } /* [project]/test/e2e/app-dir/app-css/app/style.css [app-client] (css) */ body { font-size: large; } .not-found { color: rgb(210, 105, 30); } /*# sourceMappingURL=%5Bproject%5D_test_e2e_app-dir_app-css_579669._.css.map*/ ``` ``` /* [project]/test/e2e/app-dir/app-css/app/hmr/global.css [app-client] (css) */ body { background: gray; } /*# sourceMappingURL=app_hmr_global_2336bf.css.map*/ ``` ### How? Closes PACK-2415 |
||
---|---|---|
.. | ||
404-page-router | ||
app-dir | ||
app-dir-legacy-edge-runtime-config | ||
basepath | ||
browserslist | ||
browserslist-extends | ||
cancel-request | ||
children-page | ||
config-promise-export | ||
config-schema-check | ||
conflicting-app-page-error | ||
custom-app-render | ||
disable-js-preload | ||
dynamic-route-interpolation | ||
edge-api-endpoints-can-receive-body | ||
edge-async-local-storage | ||
edge-can-read-request-body | ||
edge-can-use-wasm-files | ||
edge-compiler-can-import-blob-assets | ||
edge-compiler-module-exports-preference | ||
edge-configurable-runtime | ||
edge-pages-support | ||
edge-runtime-pages-api-route | ||
edge-runtime-uses-edge-light-import-specifier-for-packages | ||
favicon-short-circuit | ||
fetch-failures-have-good-stack-traces-in-edge-runtime | ||
getserversideprops | ||
handle-non-hoisted-swc-helpers | ||
hello-world | ||
i18n-api-support | ||
i18n-data-fetching-redirect | ||
i18n-data-route | ||
i18n-default-locale-redirect | ||
i18n-disallow-multiple-locales | ||
i18n-ignore-redirect-source-locale | ||
i18n-ignore-rewrite-source-locale | ||
ignore-invalid-popstateevent | ||
instrumentation-hook | ||
instrumentation-hook-src | ||
link-with-api-rewrite | ||
manual-client-base-path | ||
middleware-base-path | ||
middleware-custom-matchers | ||
middleware-custom-matchers-basepath | ||
middleware-custom-matchers-i18n | ||
middleware-dynamic-basepath-matcher | ||
middleware-fetches-with-any-http-method | ||
middleware-fetches-with-body | ||
middleware-general | ||
middleware-matcher | ||
middleware-redirects | ||
middleware-request-header-overrides | ||
middleware-responses | ||
middleware-rewrites | ||
middleware-shallow-link | ||
middleware-trailing-slash | ||
module-layer | ||
multi-zone | ||
new-link-behavior | ||
next-font | ||
next-head | ||
next-image-forward-ref | ||
next-phase | ||
next-script | ||
no-eslint-warn-with-no-eslint-config | ||
nonce-head-manager | ||
og-api | ||
opentelemetry | ||
optimized-loading | ||
pages-performance-mark | ||
postcss-config-cjs | ||
prerender | ||
prerender-native-module | ||
proxy-request-with-middleware | ||
react-dnd-compile | ||
reload-scroll-backforward-restoration | ||
repeated-forward-slashes-error | ||
skip-trailing-slash-redirect | ||
socket-io | ||
ssr-react-context | ||
streaming-ssr | ||
styled-jsx | ||
swc-warnings | ||
switchable-runtime | ||
test-template/{{ toFileName name }} | ||
test-utils-tests/basic | ||
testmode | ||
third-parties | ||
trailingslash-with-rewrite | ||
transpile-packages | ||
type-module-interop | ||
typescript-version-no-warning | ||
typescript-version-warning | ||
undici-fetch | ||
yarn-pnp/test | ||
basepath-trailing-slash.test.ts | ||
basepath.test.ts | ||
example-file.txt | ||
example.txt | ||
prerender-crawler.test.ts | ||
prerender-native-module.test.ts | ||
prerender.test.ts |