-
npm install typescript -g
-
tsc --init 生成配置文件
-
直接运行 ts
-
code runner + npm install ts-node -g
NPM
- npm install rollup typescript rollup-plugin-typescript2 @rollup/plugin-node-resolve rollup-plugin-serve
- rollup -> rollup-plugin-typescript2
- webpack -> ts-loader / babel-plugin-typescript