Merge pull request #535 from antvis/chore_build_config

chore: 修改ts 相关配置
This commit is contained in:
@thinkinggis 2020-10-09 09:53:33 +08:00 committed by GitHub
commit 30b40f4065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 6 deletions

View File

@ -36,9 +36,9 @@ module.exports = ({ config }) => {
loader: 'svg-inline-loader'
}
);
config.resolve.alias = {
'@antv/l7-district': path.resolve(__dirname, '../packages/boundary/src'),
}
// config.resolve.alias = {
// '@antv/l7-district': path.resolve(__dirname, '../packages/boundary/src'),
// }
config.resolve.extensions.push('.ts', '.tsx', 'css', '.js', '.glsl');

View File

@ -7,7 +7,17 @@
"rootDir": "./",
"baseUrl": "./",
"paths": {
"@antv/l7-*": ["packages/*/src"],
"@antv/l7-core": ["packages/core/src"],
"@antv/l7-component": ["packages/component/src"],
"@antv/l7-layers": ["packages/layers/src"],
"@antv/l7-map": ["packages/map/src"],
"@antv/l7-maps": ["packages/maps/src"],
"@antv/l7-scene": ["packages/scene/src"],
"@antv/l7-scene": ["packages/scene/src"],
"@antv/l7-renderer": ["packages/renderer/src"],
"@antv/l7-three": ["packages/three/src"],
"@antv/l7-mini": ["packages/mini/src"],
"@antv/l7-utils": ["packages/utils/src"],
"@antv/l7": ["packages/l7/src"],
"*": ["node_modules", "packages"]
}

View File

@ -17,8 +17,18 @@
"rootDir": "./",
"baseUrl": "./",
"paths": {
"@antv/l7-district": ["packages/boundary/src"],
"@antv/l7-*": ["packages/*/src"],
"@antv/l7-core": ["packages/core/src"],
"@antv/l7-component": ["packages/component/src"],
"@antv/l7-layers": ["packages/layers/src"],
"@antv/l7-map": ["packages/map/src"],
"@antv/l7-maps": ["packages/maps/src"],
"@antv/l7-scene": ["packages/scene/src"],
"@antv/l7-scene": ["packages/scene/src"],
"@antv/l7-renderer": ["packages/renderer/src"],
"@antv/l7-three": ["packages/three/src"],
"@antv/l7-source": ["packages/source/src"],
"@antv/l7-mini": ["packages/mini/src"],
"@antv/l7-utils": ["packages/utils/src"],
"@antv/l7": ["packages/l7/src"],
"*": ["node_modules", "packages", "typings/*"]
},