mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Closes #78114 Closes #78096 Closes PACK-4337 cc @jantimon . Thank you for creating the tests, that made it much easier! They are indeed not working with Webpack at the moment: ``` data:text/css+module,.client{font-weight:700} Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > .client{font-weight:700} ```
12 lines
252 B
TypeScript
12 lines
252 B
TypeScript
'use client'
|
|
// @ts-expect-error
|
|
import styles from 'data:text/css+module,.client{font-weight:700}'
|
|
|
|
export const ClientComponent = () => {
|
|
return (
|
|
<div id="client" className={`${styles.client}`}>
|
|
This text should be bold
|
|
</div>
|
|
)
|
|
}
|