Skip to content

Commit d2ce4d3

Browse files
committed
remove docs for need of transpiling opub ui
1 parent a688678 commit d2ce4d3

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

apps/www/next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const withNextIntl = require('next-intl/plugin')();
33

4-
const nextConfig = {
5-
transpilePackages: ['opub-ui', 'react-aria'],
6-
};
4+
const nextConfig = {};
75

86
module.exports = withNextIntl(nextConfig);

examples/district/next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const withNextIntl = require('next-intl/plugin')();
33

4-
const nextConfig = {
5-
transpilePackages: ['opub-ui', 'react-aria'],
6-
};
4+
const nextConfig = {};
75

86
module.exports = withNextIntl(nextConfig);

examples/district/tailwind.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module.exports = {
1919
darkMode: ['class', '[data-mode="dark"]'],
2020
content: [
2121
'./app/**/*.{js,ts,jsx,tsx,mdx}',
22-
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
2322
'./components/**/*.{js,ts,jsx,tsx,mdx}',
2423
],
2524
theme: {

packages/opub-ui/docs/Guides/Develop.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ Once you complete the initial setup, you can import components into your project
3636
import { Badge, Button, Menu } from 'opub-cdl/ui';
3737
```
3838

39-
## Working with Next.js
40-
41-
If you are using [Next.js](https://nextjs.org/), you will need to [transpile the packages](https://nextjs.org/docs/advanced-features/compiler#module-transpilation). Add this inside `next.config.js`:
42-
43-
```js
44-
module.exports = {
45-
transpilePackages: ['opub-ui', 'react-aria'],
46-
};
47-
```
48-
4939
## Tools
5040

5141
- [Storybook](https://main--64004009fa0a900a3197549c.chromatic.com/) - View the complete list of available components.

0 commit comments

Comments
 (0)