mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix: in ES require changed to import
This commit is contained in:
parent
573504b0e3
commit
7c8cd36a10
@ -43,6 +43,7 @@
|
||||
"@types/lodash": "^4.14.167",
|
||||
"@types/node": "^13.7.1",
|
||||
"@types/prop-types": "^15.7.3",
|
||||
"@types/react-is": "^17.0.3",
|
||||
"@types/react-test-renderer": "^17.0.1",
|
||||
"babel-jest": "^26.5.2",
|
||||
"build-plugin-component": "^0.2.11",
|
||||
|
||||
@ -8,6 +8,9 @@ import 'moment/locale/zh-cn';
|
||||
import { isEmpty } from 'lodash';
|
||||
import IntlMessageFormat from 'intl-messageformat';
|
||||
import pkg from '../../package.json';
|
||||
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');
|
||||
@ -15,10 +18,6 @@ moment.locale('zh-cn');
|
||||
|
||||
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
|
||||
|
||||
const ReactIs = require('react-is');
|
||||
const ReactPropTypesSecret = require('prop-types/lib/ReactPropTypesSecret');
|
||||
const factoryWithTypeCheckers = require('prop-types/factoryWithTypeCheckers');
|
||||
|
||||
const PropTypes2 = factoryWithTypeCheckers(ReactIs.isElement, true);
|
||||
|
||||
const EXPRESSION_TYPE = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user