chore: remove moment.js

This commit is contained in:
shuogui.lin 2022-08-31 20:21:59 +08:00 committed by LeoYuan 袁力皓
parent 4c032d0d0e
commit 6daca093ef
2 changed files with 1 additions and 7 deletions

View File

@ -24,7 +24,6 @@
"intl-messageformat": "^9.3.1",
"jsonuri": "^2.1.2",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"prop-types": "^15.7.2",
"react-is": "^16.10.1",
"socket.io-client": "^2.2.0",

View File

@ -2,9 +2,6 @@
/* eslint-disable no-new-func */
import logger from './logger';
import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@alilc/lowcode-types';
// moment对象配置
import _moment from 'moment';
import 'moment/locale/zh-cn';
import { isEmpty } from 'lodash';
import IntlMessageFormat from 'intl-messageformat';
import pkg from '../../package.json';
@ -12,8 +9,6 @@ import * as ReactIs from 'react-is';
import { default as ReactPropTypesSecret } from 'prop-types/lib/ReactPropTypesSecret';
import { default as factoryWithTypeCheckers } from 'prop-types/factoryWithTypeCheckers';
export const moment = _moment;
moment.locale('zh-cn');
(window as any).sdkVersion = pkg.version;
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
@ -372,4 +367,4 @@ export function serializeParams(obj: any) {
}
});
return result.join('&');
}
}