mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Skip the Pages Router global CSS restriction for `data:` URL imports (similar to app router and mixed app/pages router) ### Why? `data:text/css` should work the same no matter if pages router, app router or mixed router usage ### How? the validation in `crates/next-api/src/module_graph.rs` already had a carve-out for `node_modules`. This adds the same for data URL modules. fixes #89900 - [x] Related issues linked using `fixes #89900` - [x] Tests added --------- Co-authored-by: Tim Neutkens <[email protected]>
6 lines
141 B
TypeScript
6 lines
141 B
TypeScript
import 'data:text/css,#styled{font-weight:700}'
|
|
|
|
export default function Home() {
|
|
return <div id="styled">This text should be bold</div>
|
|
}
|