Skip to content

Commit

Permalink
📝 docs: update nextjs use docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Jan 11, 2024
1 parent 3d8d767 commit 89b921a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ pnpm install @ant-design/pro-editor
```js
const nextConfig = {
transpilePackages: ['@ant-design/pro-editor', 'leva'],
transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ pnpm install @ant-design/pro-editor
```js
const nextConfig = {
transpilePackages: ['@ant-design/pro-editor', 'leva'],
transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'],
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/intro.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Since Next.js is a CSR/SSR isomorphic React framework, and ProEditor only provid
/** @type {import('next').NextConfig} */
const nextConfig = {
// Convert pure esm modules to node-compatible modules
transpilePackages: ['@ant-design/pro-editor', 'leva'], // leva is a ProEditor dependency module
transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'], // leva is a ProEditor dependency module
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/intro.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ProEditor 将会提供编辑场景需要的各类原子化能力,包括但不
/** @type {import('next').NextConfig} */
const nextConfig = {
// 将纯 esm 模块转为 node 兼容模块
transpilePackages: ['@ant-design/pro-editor', 'leva'], // leva 为 ProEditor 依赖模块
transpilePackages: ['@ant-design/pro-editor', 'leva', 'zustand'], // leva 为 ProEditor 依赖模块
};
```

Expand Down

0 comments on commit 89b921a

Please sign in to comment.