electron with typescript react rollup and webpack
ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/" yarn add electron
用于指定解析文件类型
以绝对路径进行文件解析
yarn add -D tsconfig-paths ts-node @types/node @types/webpack
yarn add -D @babel/preset-env @babel/react @babel/typescript styled-jsx @babel/plugin-proposal-numeric-separator @babel/proposal-class-properties @babel/proposal-object-rest-spread @babel/plugin-proposal-optional-chaining