build: manual tree shaking for react-use

This commit is contained in:
EnixCoda 2020-01-20 00:56:15 +08:00
parent b206a40e2f
commit 4c4b28afa6
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import { connect } from 'driver/connect'
import { FileExplorerCore } from 'driver/core'
import { ConnectorState, Props } from 'driver/core/FileExplorer'
import * as React from 'react'
import { useEvent } from 'react-use'
import useEvent from 'react-use/esm/useEvent'
import { FixedSizeList as List, ListChildComponentProps, ListProps } from 'react-window'
import { cx } from 'utils/cx'
import { useOnLocationChange, usePrevious } from 'utils/hooks'

View file

@ -11,7 +11,7 @@ import { SideBarCore } from 'driver/core'
import { ConnectorState, Props } from 'driver/core/SideBar'
import { oauth } from 'env'
import * as React from 'react'
import { useEvent } from 'react-use'
import useEvent from 'react-use/esm/useEvent'
import { cx } from 'utils/cx'
import * as DOMHelper from 'utils/DOMHelper'
import { JSONRequest, parseURLSearch } from 'utils/general'

View file

@ -1,5 +1,5 @@
import * as React from 'react'
import { useLocation } from 'react-use'
import useLocation from 'react-use/esm/useLocation'
import { createStyleSheet, setStyleSheetMedia } from './general'
export function useWindowSize(