ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] # Rollup.js https://www.rollupjs.com/ [https://rollupjs.org/guide/zh/](https://rollupjs.org/guide/zh/) # 配置 ~~~ // rollup.config.js import json from 'rollup-plugin-json'; export default { input: 'src/main.js', output: { file: 'bundle.js', format: 'cjs' }, plugins: [ json() ] }; ~~~ [JavaScript 模块化](https://github.com/luoway/blog/issues/16)