Commit 5b30fb39 authored by 邓晓峰's avatar 邓晓峰

fix: 修复commonjs打包

parent 41feedd5
......@@ -36,7 +36,11 @@ if (type === 'lib') {
runtimeHelpers: true,
pkgs: [...headPkgs, ...tailPkgs],
extraBabelPlugins: [
['babel-plugin-import', { libraryName: 'antd', libraryDirectory: 'es', style: true }, 'antd'],
[
'babel-plugin-import',
{ libraryName: 'antd', libraryDirectory: 'lib', style: true },
'antd',
],
],
};
}
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@basic-chart-prefix-cls: ~'@{ant-prefix}-basic-chart';
.@{basic-chart-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@basic-table-prefix-cls: ~'@{ant-prefix}-basic-table';
.@{basic-table-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@device-tree-prefix-cls: ~'@{ant-prefix}-device-tree';
.@{device-tree-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@panda-empty-prefix-cls: ~'@{ant-prefix}-panda-empty';
.@{panda-empty-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@history-info-prefix-cls: ~'@{ant-prefix}-history-info';
.@{history-info-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@image-select-prefix-cls: ~'@{ant-prefix}-image-select';
.@{image-select-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@quota-select-prefix-cls: ~'@{ant-prefix}-quota-select';
.@{quota-select-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@realtime-info-prefix-cls: ~'@{ant-prefix}-realtime-info';
.@{realtime-info-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@time-range-picker-prefix-cls: ~'@{ant-prefix}-time-range-picker';
.@{time-range-picker-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@panda-gis-tipHeader-prefix-cls: ~'@{ant-prefix}-panda-gis-tipHeader';
.@{panda-gis-tipHeader-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@panda-gis-tip-prefix-cls: ~'@{ant-prefix}-panda-gis-tip';
.@{panda-gis-tip-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@panda-gis-tipLeft-prefix-cls: ~'@{ant-prefix}-panda-gis-tipLeft';
.@{panda-gis-tipLeft-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@panda-gis-tipContent-prefix-cls: ~'@{ant-prefix}-panda-gis-tipContent';
.@{panda-gis-tipContent-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@ec-configuration-view-prefix-cls: ~'@{ant-prefix}-ec-configuration-view';
.@{ec-configuration-view-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@ec-device-tree-prefix-cls: ~'@{ant-prefix}-ec-device-tree';
.@{ec-device-tree-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@history-info-prefix-cls: ~'@{ant-prefix}-history-info';
.@{history-info-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@ec-quota-select-prefix-cls: ~'@{ant-prefix}-ec-quota-select';
.@{ec-quota-select-prefix-cls} {
......
@import '~antd/es/style/themes/default';
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@realtime-info-prefix-cls: ~'@{ant-prefix}-realtime-info';
.@{realtime-info-prefix-cls} {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment