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

feat: 构建注入version #1996

Merged
merged 1 commit into from
Sep 14, 2024
Merged

feat: 构建注入version #1996

merged 1 commit into from
Sep 14, 2024

Conversation

tangying1027
Copy link
Contributor

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

@@ -4,3 +4,6 @@ export * from '@antv/f-engine';
export { default as Chart, ChartProps } from './chart';
export { Scale, ScaleConfig } from './deps/f2-scale/src';
export * from './components';

import info from '../package.json';
export default { version: info?.version };
Copy link
Member

Choose a reason for hiding this comment

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

这个不要直接 import package, 最好通过构建注入进来

Copy link
Contributor Author

Choose a reason for hiding this comment

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

有道理,我看看有没有对应的插件

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uploading image.png…

@tangying1027 tangying1027 changed the title feat: export version feat: 构建注入version Sep 14, 2024
@tangying1027 tangying1027 merged commit 787abb2 into master Sep 14, 2024
3 of 9 checks passed
@tangying1027 tangying1027 deleted the feat-version branch September 14, 2024 05:50
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.

2 participants