neo-cmp-cli 1.0.7 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.10",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ts-custom-cmp-template",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "neo自定义组件模板(react&ts技术栈)",
5
5
  "keywords": [
6
6
  "自定义组件模板",
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { Avatar } from 'antd';
3
- import { UserOutlined } from '@ant-design/icons';
2
+ // import { Avatar } from 'antd';
3
+ // import { UserOutlined } from '@ant-design/icons';
4
4
  import './style.scss'; // 组件内容样式
5
5
 
6
6
  interface InfoCardProps {
@@ -43,7 +43,7 @@ export default class InfoCard extends React.PureComponent<InfoCardProps> {
43
43
  {title ||
44
44
  '营销服全场景智能CRM,帮助企业搭建数字化客户经营平台,实现业绩高质量增长。'}
45
45
  {systemInfo.tenantName ? `【${systemInfo.tenantName}】` : ''}
46
- <Avatar size={64} icon={<UserOutlined />} />
46
+ {/* <Avatar size={64} icon={<UserOutlined />} /> */}
47
47
  </div>
48
48
  <div className="item-imgbox">
49
49
  {userInfo && userInfo.icon && (
@@ -33,15 +33,6 @@ const neoSharedDeps = {
33
33
  };
34
34
 
35
35
  const MFPlugins = [
36
- new ModuleFederationPlugin({
37
- name: currentPackageJson.name,
38
- remotes: {
39
- // 通过 external-remotes-plugin 支持变量写法
40
- neobase: 'neobase@[window.neoEntrys.neobase]',
41
- neoreact: 'neoreact@[window.neoEntrys.neoreact]'
42
- }
43
- }),
44
- new ExternalTemplateRemotesPlugin(),
45
36
  new webpack.NormalModuleReplacementPlugin(/(.*)/, (resource) => {
46
37
  if (neoSharedDeps[resource.request]) {
47
38
  // 使用 Neo 提供的其他依赖
@@ -51,7 +42,16 @@ const MFPlugins = [
51
42
  // 使用 Neo 提供的 react 和 react-dom
52
43
  resource.request = `neoreact/${resource.request}`;
53
44
  }
54
- })
45
+ }),
46
+ new ModuleFederationPlugin({
47
+ name: currentPackageJson.name,
48
+ remotes: {
49
+ // 通过 external-remotes-plugin 支持变量写法
50
+ neobase: 'neobase@[window.neoEntrys.neobase]',
51
+ neoreact: 'neoreact@[window.neoEntrys.neoreact]'
52
+ }
53
+ }),
54
+ new ExternalTemplateRemotesPlugin(),
55
55
  ];
56
56
 
57
57
  module.exports = {