diff --git a/README.md b/README.md index c7d9afe2..62184755 100644 --- a/README.md +++ b/README.md @@ -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'], }; ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index d84f846c..5674446f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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'], }; ``` diff --git a/docs/guide/intro.en-US.md b/docs/guide/intro.en-US.md index ee0dbe32..1e73f7b4 100644 --- a/docs/guide/intro.en-US.md +++ b/docs/guide/intro.en-US.md @@ -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 }; ``` diff --git a/docs/guide/intro.zh-CN.md b/docs/guide/intro.zh-CN.md index 2188255b..f48457b2 100644 --- a/docs/guide/intro.zh-CN.md +++ b/docs/guide/intro.zh-CN.md @@ -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 依赖模块 }; ```