Skip to content

Commit

Permalink
fix: export version
Browse files Browse the repository at this point in the history
  • Loading branch information
xuying.xu committed Oct 14, 2024
1 parent 97ba27b commit c748337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions packages/f2/.fatherrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,5 @@ export default process.env.CI && process.env.CI === 'true'
},
},
},
extraBabelPlugins: [[
"search-and-replace",
{
"rules": [
{
"search": "VERSION",
"searchTemplateStrings": true,
"replace": JSON.stringify(require('./package').version)
}
]
}
]],
extraRollupPlugins: [...(isBundleVis ? [visualizer()] : [])],
};
6 changes: 3 additions & 3 deletions packages/f2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export * from '@antv/f-engine';

export { default as Chart, ChartProps } from './chart';
export { Scale, ScaleConfig } from './deps/f2-scale/src';
export * from './deps/f2-scale/src';
export * from './components';
//@ts-ignore
export default { version: 'VERSION' };

export { version } from '../package.json';

0 comments on commit c748337

Please sign in to comment.