Skip to content

Commit

Permalink
fixup! Docs(icons): Transpile icons #DS-987
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj authored and crishpeen committed Nov 19, 2024
1 parent f25d10e commit e5f281a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export const Icon = ({ name, , size }) => {

### Next.js with Pages Router

If you are using Next.js with the Pages Router, you need to add the following configuration to your next configuration to transpile the `@lmc-eu/spirit-web-react` package:
If you are using Next.js with the Pages Router, it is necessary to add the following configuration to your Next.js configuration file
to transpile the `@lmc-eu/spirit-web-react` package, ensuring the correct functionality of the icons:

```javascript
const nextConfig = {
Expand All @@ -96,7 +97,7 @@ const nextConfig = {
export default nextConfig;
```

For more information, see the [Next.js documentation][nextjs-transpilePackages].
For more information, please see the [Next.js documentation][nextjs-transpilePackages].

[`spirit-web`]: https://github.com/lmc-eu/spirit-design-system/tree/main/packages/web
[nextjs-transpilePackages]: https://nextjs.org/docs/pages/api-reference/next-config-js/transpilePackages

0 comments on commit e5f281a

Please sign in to comment.