Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into feat-text-height-adpa…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
lijinke666 committed Nov 19, 2024
2 parents e200143 + e243e89 commit d5ee559
Show file tree
Hide file tree
Showing 150 changed files with 6,593 additions and 2,449 deletions.
22 changes: 20 additions & 2 deletions build.config.base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import path from 'path';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import { visualizer } from 'rollup-plugin-visualizer';

export const getBaseConfig = () => {
export const getBaseConfig = ({
aliasReact = false,
aliasReactComponents = false,
} = {}) => {
const entry = './src/index.ts';

const OUT_DIR_NAME_MAP = {
Expand Down Expand Up @@ -45,7 +48,22 @@ export const getBaseConfig = () => {
find: /^@antv\/s2$/,
replacement: path.join(__dirname, './packages/s2-core/src'),
},
],
{
find: /^@antv\/s2\/extends$/,
replacement: path.join(__dirname, './packages/s2-core/src/extends'),
},
aliasReact && {
find: /^@antv\/s2-react$/,
replacement: path.join(__dirname, './packages/s2-react/src'),
},
aliasReactComponents && {
find: /^@antv\/s2-react-components$/,
replacement: path.join(
__dirname,
'./packages/s2-react-components/src',
),
},
].filter(Boolean),
);
}

Expand Down
1 change: 1 addition & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {
'^tests/(.*)': '<rootDir>/__tests__/$1',
'^@antv/s2$': path.join(__dirname, 'packages/s2-core/src'),
'^@antv/s2/esm/(.*)$': path.join(__dirname, 'packages/s2-core/src/$1'),
'^@antv/s2/extends$': path.join(__dirname, 'packages/s2-core/src/extends'),
'^@antv/s2-react$': path.join(__dirname, 'packages/s2-react/src'),
'^@antv/s2-react-components$': path.join(
__dirname,
Expand Down
Loading

0 comments on commit d5ee559

Please sign in to comment.