From 0b8fadd24cdfa580f13348c80c1cbb1677392be5 Mon Sep 17 00:00:00 2001 From: ztplz Date: Sat, 12 Jan 2019 22:19:38 +0800 Subject: [PATCH] Update --- components/_util/warning.tsx | 2 +- components/drawer/index.tsx | 2 +- components/select/index.tsx | 2 +- tsconfig.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/_util/warning.tsx b/components/_util/warning.tsx index 6e29252487..8dd4a8ce69 100644 --- a/components/_util/warning.tsx +++ b/components/_util/warning.tsx @@ -1,4 +1,4 @@ -import * as warning from 'warning'; +import warning from 'warning'; const warned: Record = {}; export default (valid: boolean, message: string): void => { diff --git a/components/drawer/index.tsx b/components/drawer/index.tsx index ac18a9ab0e..2ab779f40c 100644 --- a/components/drawer/index.tsx +++ b/components/drawer/index.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import * as PropTypes from 'prop-types'; import RcDrawer from 'rc-drawer'; import createReactContext, { Context } from 'create-react-context'; -import * as warning from 'warning'; +import warning from '../_util/warning'; import classNames from 'classnames'; import Icon from '../icon'; import { withConfigConsumer, ConfigConsumerProps } from '../config-provider'; diff --git a/components/select/index.tsx b/components/select/index.tsx index 14d1eda2bd..48633a2af2 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -4,7 +4,7 @@ import RcSelect, { Option, OptGroup } from 'rc-select'; import classNames from 'classnames'; import { ConfigConsumer, ConfigConsumerProps, RenderEmptyHandler } from '../config-provider'; import omit from 'omit.js'; -import * as warning from 'warning'; +import warning from '../_util/warning'; import Icon from '../icon'; import { tuple } from '../_util/type'; diff --git a/tsconfig.json b/tsconfig.json index c9d92cb3dc..f8cc33d63a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "strictNullChecks": true, "moduleResolution": "node", + "esModuleInterop": true, "experimentalDecorators": true, "jsx": "preserve", "noUnusedParameters": true,