Skip to content

Commit

Permalink
fix(react): 将导出加入 prettier-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Aug 7, 2020
1 parent b638e15 commit 6b01d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/* istanbul ignore file */

// prettier-ignore
export {
// 手动导出以解决 cjs 下 Cannot redefine property 的问题
// @index(['../../node_modules/react-use/esm/{use,create}*.js', '!**/{useToggle,createGlobalState,useTitle,useInterval,useSearchParam,useLocalStorage,useWindowSize,useHover,createRouter,useKeyboardJs,useMeasureDirty,useSpring,useWait}.js'], (f, _) => `${f.name},`)
Expand Down Expand Up @@ -111,7 +112,8 @@ export {
useUpsert,
useVibrate,
useVideo,
useWindowScroll, // @endindex
useWindowScroll,
// @endindex
} from 'react-use'

// @index(['./**/*.ts', '!./**/*.{test,taro}.*', '!./{useToggle,createGlobalState,useTitle,useInterval,useSearchParam,useLocalStorage,useWindowSize,useHover}.*'], f => `export * from '${f.path}'`)
Expand Down

0 comments on commit 6b01d1a

Please sign in to comment.