forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don’t use chunkhash in development (vercel#4436)
* Don’t use chunkhash in development * Add test for dynamic imports styling * Remove pre-load of dynamic page * Make sure the browser gets closed only once
- Loading branch information
1 parent
7189753
commit 0a14a37
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default () => { | ||
return <div id='dynamic-component'> | ||
Dynamic Component | ||
<style jsx>{` | ||
div { | ||
font-size: 100px; | ||
} | ||
`}</style> | ||
</div> | ||
} |
10 changes: 10 additions & 0 deletions
10
test/integration/basic/pages/hmr/style-dynamic-component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
import dynamic from 'next/dynamic' | ||
|
||
const HmrDynamic = dynamic(import('../../components/hmr/dynamic')) | ||
|
||
export default () => { | ||
return ( | ||
<HmrDynamic /> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters