mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? * Allow to apply webpack loaders depending on "conditions". * add a few next specific conditions depending on context type ### Why? Some loaders need different behavior depending on context ### How? Closes PACK-2748
12 lines
200 B
TypeScript
12 lines
200 B
TypeScript
import Client from './client'
|
|
import rsc from './file.test-file.js'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<p>server: {JSON.stringify(rsc)}</p>
|
|
<Client />
|
|
</div>
|
|
)
|
|
}
|