Skip to content

Commit c3bcc2d

Browse files
committed
fix(rsc): show warning when auto css heuristics failed
1 parent 93facc3 commit c3bcc2d

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.test-style-server-not-detected {
2+
color: rgb(255, 165, 0);
3+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import './server.css'
2+
3+
export function TestStyleServerNotDetected() {
4+
return (
5+
<div className="test-style-server-not-detected">
6+
test-style-server-not-detected
7+
</div>
8+
)
9+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import './server.css'
22
import styles from './server.module.css'
3+
// import { TestStyleServerNotDetected } from "./not-detected/server";
34

4-
export function TestStyleServer() {
5+
export async function TestStyleServer() {
6+
const { TestStyleServerNotDetected } = await import('./not-detected/server')
57
return (
68
<>
79
<div className="test-style-server">test-style-server</div>
810
<div data-testid="css-module-server" className={styles.server}>
911
test-css-module-server
1012
</div>
13+
<TestStyleServerNotDetected />
1114
</>
1215
)
1316
}

0 commit comments

Comments
 (0)