瀏覽代碼

fix: add echarts and zrender to transpilePackages for ESM compatibility (#26208)

tags/1.9.1
lyzno1 1 月之前
父節點
當前提交
0cac330bc2
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      web/next.config.js

+ 1
- 0
web/next.config.js 查看文件

@@ -91,6 +91,7 @@ const remoteImageURLs = [hasSetWebPrefix ? new URL(`${process.env.NEXT_PUBLIC_WE
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
transpilePackages: ['echarts', 'zrender'],
turbopack: {
rules: codeInspectorPlugin({
bundler: 'turbopack'

Loading…
取消
儲存