Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: export g6 getExtension, getExtensions and register from ssr #6661

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

Aarebecca
Copy link
Contributor

  • 避免某些情况下注册失效的问题

Copy link

Walkthrough

此PR通过从@antv/g6导出getExtensiongetExtensionsregister函数,增强了G6的SSR支持。这些更改旨在解决某些情况下注册失效的问题,并在文档中增加了关于如何注册自定义G6扩展的说明。

Changes

文件 概要
packages/g6-ssr/README.md 添加了关于如何使用registry函数注册自定义G6扩展的文档说明。
packages/g6-ssr/package.json 更新了包的依赖和版本信息。
packages/g6-ssr/src/index.ts @antv/g6导出getExtensiongetExtensionsregister函数。

@@ -1,3 +1,4 @@
export { getExtension, getExtensions, register } from '@antv/g6';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确保从@antv/g6导出的getExtensiongetExtensionsregister函数在SSR环境中正常工作。建议在合并前进行相关测试。

@Aarebecca Aarebecca added the publish PR merges with this tag will perform the publication label Dec 23, 2024
@Aarebecca Aarebecca merged commit 2c2950b into v5 Dec 23, 2024
1 check passed
@Aarebecca Aarebecca deleted the refactor/ssr-exports branch December 23, 2024 07:50
@Aarebecca Aarebecca removed the publish PR merges with this tag will perform the publication label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant