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: add test test for css order #76675

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
import("./1.css");
import("./2.css");

import("./x.css");
import("./y.css");
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "y.css";

.x {
content: "";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "x.css";

.y {
content: "";
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_b43e7d97._.js", {
(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push(["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_af36f555._.js", {

"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/1.css [test] (css, async loader)": ((__turbopack_context__) => {

Expand Down Expand Up @@ -68,4 +68,48 @@ __turbopack_context__.v((parentImport) => {
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {});
});
}}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css, async loader)": ((__turbopack_context__) => {

var { g: global, d: __dirname } = __turbopack_context__;
{
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_5b2f9846._.css",
"included": [
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css)",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css)"
],
"moduleChunks": [
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_x_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_y_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_y_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_x_7d7e1c0b.css"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {});
});
}}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css, async loader)": ((__turbopack_context__) => {

var { g: global, d: __dirname } = __turbopack_context__;
{
__turbopack_context__.v((parentImport) => {
return Promise.all([
{
"path": "output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_99c586b3._.css",
"included": [
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/y.css [test] (css)",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/x.css [test] (css)"
],
"moduleChunks": [
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_y_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_x_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_x_7d7e1c0b.css",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_y_7d7e1c0b.css"
]
}
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {});
});
}}),
}]);

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_99fd20ec.js",
"output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_45aba2aa.js",
{},
{"otherChunks":["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_b43e7d97._.js","output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_2a740bfb.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/index.js [test] (ecmascript)"]}
{"otherChunks":["output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_af36f555._.js","output/turbopack_crates_turbopack-tests_tests_snapshot_css_cycle_input_index_2a740bfb.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/cycle/input/index.js [test] (ecmascript)"]}
]);
// Dummy runtime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
@import "b4.css";

.b {
content: "11";
content: "16";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
@import "b3b.css";

.b3 {
content: "9";
content: "11";
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "shared.css";

.b3a {
content: "7";
content: "9";
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.b3a {
content: "8";
content: "10";
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import "b4a.css";
@import "b4b.css";

.b4 {
content: "10";
content: "14";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "shared.css";

.b4a {
content: "12";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "shared.css";

.b4b {
content: "13";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.b5 {
content: "15";
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "shared.css";

.c {
content: "12";
content: "17";
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "b4.css";
@import "b3.css";
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./entry.css";

import("./entry.css");
import("./b1.css");
import("./entry2.css");
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "shared1.css";

.shared {
content: "8";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.shared {
content: "7";
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading
Loading