From 5d52c96926d9be7271b665ee4100c122c6348a17 Mon Sep 17 00:00:00 2001 From: Joel Alan <31396322+lxfu1@users.noreply.github.com> Date: Mon, 6 May 2024 17:18:36 +0800 Subject: [PATCH] fix: webpack with export * as (#2530) --- packages/charts/CHANGELOG.md | 6 ++++++ packages/charts/package.json | 2 +- packages/plots/CHANGELOG.md | 6 ++++++ packages/plots/package.json | 2 +- packages/plots/src/index.ts | 5 +++-- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/packages/charts/CHANGELOG.md b/packages/charts/CHANGELOG.md index 8eb1491b8..f293fee16 100644 --- a/packages/charts/CHANGELOG.md +++ b/packages/charts/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.1.1 + +`2024-05-06` + +- 🐞 修复低版本 webpack 不支持的 `export * as` 语法 + ## 2.1.0 `2024-04-19` diff --git a/packages/charts/package.json b/packages/charts/package.json index 8c4e84063..43a9fe1b7 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "@ant-design/charts", - "version": "2.1.0", + "version": "2.1.1", "description": "AntV upper level visual component library", "bugs": { "url": "https://github.com/ant-design/ant-design-charts/issues" diff --git a/packages/plots/CHANGELOG.md b/packages/plots/CHANGELOG.md index 18d90f018..6e79b6c34 100644 --- a/packages/plots/CHANGELOG.md +++ b/packages/plots/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.2.2 + +`2024-05-06` + +- 🐞 修复低版本 webpack 不支持的 `export * as` 语法 + ## 2.2.1 `2024-04-25` diff --git a/packages/plots/package.json b/packages/plots/package.json index 7f248b8d8..156df310c 100644 --- a/packages/plots/package.json +++ b/packages/plots/package.json @@ -1,6 +1,6 @@ { "name": "@ant-design/plots", - "version": "2.2.1", + "version": "2.2.2", "description": "G2Plot Statistical chart", "bugs": { "url": "https://github.com/ant-design/ant-design-charts/issues" diff --git a/packages/plots/src/index.ts b/packages/plots/src/index.ts index ebcfd49ce..1e67f65fc 100644 --- a/packages/plots/src/index.ts +++ b/packages/plots/src/index.ts @@ -1,6 +1,7 @@ -export * from './components'; +import * as G2 from '@antv/g2'; +export * from './components'; export * from './interface'; - /** utils */ export { measureTextWidth } from './core/utils'; +export { G2 };