fix: add echarts and zrender to transpilePackages for ESM compatibility (#26208)
This commit is contained in:
parent
fb8114792a
commit
0cac330bc2
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ const remoteImageURLs = [hasSetWebPrefix ? new URL(`${process.env.NEXT_PUBLIC_WE
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
|
||||||
|
transpilePackages: ['echarts', 'zrender'],
|
||||||
turbopack: {
|
turbopack: {
|
||||||
rules: codeInspectorPlugin({
|
rules: codeInspectorPlugin({
|
||||||
bundler: 'turbopack'
|
bundler: 'turbopack'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue