Skip to content

Commit 6bb64f3

Browse files
LeoYuanJackLian
authored andcommitted
chore: remove unused deps for renderer-core
1 parent 23cf6bc commit 6bb64f3

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

packages/renderer-core/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"moment": "^2.24.0",
2828
"prop-types": "^15.7.2",
2929
"react-is": "^16.10.1",
30-
"serialize-javascript": "^1.7.0",
3130
"socket.io-client": "^2.2.0",
3231
"whatwg-fetch": "^3.0.0",
3332
"zen-logger": "^1.1.4"
@@ -45,7 +44,6 @@
4544
"@types/node": "^13.7.1",
4645
"@types/prop-types": "^15.7.3",
4746
"@types/react-test-renderer": "^17.0.1",
48-
"@types/serialize-javascript": "^5.0.0",
4947
"babel-jest": "^26.5.2",
5048
"build-plugin-component": "^0.2.11",
5149
"jest": "^26.6.3",

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,15 @@ import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@ali
55
// moment对象配置
66
import _moment from 'moment';
77
import 'moment/locale/zh-cn';
8-
import pkg from '../../package.json';
9-
108
import { isEmpty } from 'lodash';
11-
12-
import _serialize from 'serialize-javascript';
13-
import * as _jsonuri from 'jsonuri';
14-
159
import IntlMessageFormat from 'intl-messageformat';
10+
import pkg from '../../package.json';
1611

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

2116
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
22-
export const jsonuri = _jsonuri;
23-
export const serialize = _serialize;
2417

2518
const ReactIs = require('react-is');
2619
const ReactPropTypesSecret = require('prop-types/lib/ReactPropTypesSecret');

0 commit comments

Comments
 (0)