Skip to content

Commit 70fb830

Browse files
shuogui.linliujuping
authored andcommitted
chore: remove moment.js
1 parent 94a211e commit 70fb830

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/renderer-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"intl-messageformat": "^9.3.1",
2525
"jsonuri": "^2.1.2",
2626
"lodash": "^4.17.11",
27-
"moment": "^2.24.0",
2827
"prop-types": "^15.7.2",
2928
"react-is": "^16.10.1",
3029
"socket.io-client": "^2.2.0",

packages/renderer-core/src/utils/common.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22
/* eslint-disable no-new-func */
33
import logger from './logger';
44
import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@alilc/lowcode-types';
5-
// moment对象配置
6-
import _moment from 'moment';
7-
import 'moment/locale/zh-cn';
85
import { isEmpty } from 'lodash';
96
import IntlMessageFormat from 'intl-messageformat';
107
import pkg from '../../package.json';
118
import * as ReactIs from 'react-is';
129
import { default as ReactPropTypesSecret } from 'prop-types/lib/ReactPropTypesSecret';
1310
import { default as factoryWithTypeCheckers } from 'prop-types/factoryWithTypeCheckers';
1411

15-
export const moment = _moment;
16-
moment.locale('zh-cn');
1712
(window as any).sdkVersion = pkg.version;
1813

1914
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
@@ -372,4 +367,4 @@ export function serializeParams(obj: any) {
372367
}
373368
});
374369
return result.join('&');
375-
}
370+
}

0 commit comments

Comments
 (0)