Skip to content

Commit

Permalink
Update migrating-from-v2-to-v3.md (#29898)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Mar 1, 2021
1 parent 6f634aa commit 4674951
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/reference/release-notes/migrating-from-v2-to-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ const Box = ({ children }) => (
export default Box
```
You can also still import all styles using the `import * as styles` sytax e.g. `import * as styles from './mystyles.module.css'`.
### File assets (fonts, pdfs, ...) are imported as ESModules
Assets are handled as ESM modules. Make sure to switch your require functions into imports.
Expand Down

0 comments on commit 4674951

Please sign in to comment.