Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.02 KB

File metadata and controls

31 lines (20 loc) · 1.02 KB

优先参考剥壳 rollup + typescript

https://blog.csdn.net/qq_32930863/article/details/108608709

https://blog.csdn.net/OldDreamHYN/article/details/110090563

https://www.jianshu.com/p/874342f24d89

插件介绍

rollup-plugin-terser

  • 🍣 Rollup plugin to minify generated es bundle. Uses terser under the hood.

rollup-plugin-typescript2

  • rollup解析及编译TS插件
  • 🍣 A Rollup plugin which Converts .json files to ES6 modules.

@rollup/plugin-node-resolve

  • 解析代码中依赖的node_modules
  • 🍣 A Rollup plugin which locates modules using the Node resolution algorithm, for using third party modules in node_modules

@rollup/plugin-replace

  • 🍣 A Rollup plugin which replaces targeted strings in files while bundling.

@rollup/plugin-json

  • 将json转换为ES6模块