From cf05d52bc02f4e0a11bee6768bb4d61d7af8069e Mon Sep 17 00:00:00 2001 From: hustcc Date: Wed, 5 Mar 2025 09:31:04 +0800 Subject: [PATCH] docs: update readme for nextjs --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 821f791..ebdab16 100644 --- a/README.md +++ b/README.md @@ -218,9 +218,8 @@ import 'echarts/lib/component/title'; /> ``` -For **Next.js** user, code transpilation is needed. +For **Next.js** user, code transpilation is needed. For Next.js 13.1 or higher, as all `next-transpile-modules` features are natively built-in and the package has been deprecated, so please add `transpilePackages: ['echarts', 'zrender']` into `nextConfig` object: -For Next.js 13.1 or higher, as all `next-transpile-modules` features are natively built-in and the package has been deprecated, so please add `transpilePackages: ['echarts', 'zrender']` into `nextConfig` object: ```js // next.config.js /** @type {import('next').NextConfig} */ @@ -233,7 +232,7 @@ const nextConfig = { module.exports = nextConfig ``` -For previous versions: +For Next.js with version < 13.1: ```js // next.config.js