🛠️ 工程化工具 - ROLLUP

共 20 道题目

#1 初级

Rollup 是什么?它的主要作用是什么?

What is Rollup? What is its main purpose?

**What is Rollup? What is its main purpose?**
- *考察点:基础概念与应用场景。*
#2 初级

Rollup 与 Webpack 有哪些核心区别?

What are the core differences between Rollup and Webpack?

**What are the core differences between Rollup and Webpack?**
- *考察点:工具对比与适用场景。*
#3 初级

如何在 Rollup 中配置入口文件?

How to configure entry files in Rollup?

**How to configure entry files in Rollup?**
- *考察点:input 字段用法。*
#4 初级

Rollup 支持哪些输出格式?如何配置?

What output formats does Rollup support? How to configure them?

**What output formats does Rollup support? How to configure them?**
- *考察点:output 格式类型。*
#5 初级

Rollup 配置文件中 input、output、plugins 字段分别有什么作用?

What are the roles of input, output, and plugins fields in Rollup configuration files?

**What are the roles of input, output, and plugins fields in Rollup configuration files?**
- *考察点:核心配置项理解。*
#6 初级

如何在 Rollup 中实现多入口打包?

How to implement multi-entry bundling in Rollup?

**How to implement multi-entry bundling in Rollup?**
- *考察点:多入口配置方法。*
#7 初级

什么是 Tree-shaking?Rollup 如何实现这一特性?

What is Tree-shaking? How does Rollup implement this feature?

**What is Tree-shaking? How does Rollup implement this feature?**
- *考察点:Tree-shaking 原理。*
#8 初级

Rollup 中 external 配置的作用是什么?

What is the role of external configuration in Rollup?

**What is the role of external configuration in Rollup?**
- *考察点:外部依赖处理。*
#9 初级

ES 模块和 CommonJS 模块在 Rollup 中有什么区别?

What are the differences between ES modules and CommonJS modules in Rollup?

**What are the differences between ES modules and CommonJS modules in Rollup?**
- *考察点:模块系统理解。*
#10 初级

如何在 Rollup 中集成 Babel 或 TypeScript?

How to integrate Babel or TypeScript in Rollup?

**How to integrate Babel or TypeScript in Rollup?**
- *考察点:工具集成方式。*
#1 中级

Rollup 插件的生命周期有哪些关键钩子?

What are the key hooks in the Rollup plugin lifecycle?

**What are the key hooks in the Rollup plugin lifecycle?**
- *考察点:插件钩子机制。*
#2 中级

如何开发一个自定义 Rollup 插件?需要哪些基本结构?

How to develop a custom Rollup plugin? What basic structures are needed?

**How to develop a custom Rollup plugin? What basic structures are needed?**
- *考察点:插件开发流程。*
#3 中级

@rollup/plugin-node-resolve 的作用是什么?如何配置?

What is the role of @rollup/plugin-node-resolve? How to configure it?

**What is the role of @rollup/plugin-node-resolve? How to configure it?**
- *考察点:主流插件用途。*
#4 中级

@rollup/plugin-commonjs 解决了什么问题?

What problem does @rollup/plugin-commonjs solve?

**What problem does @rollup/plugin-commonjs solve?**
- *考察点:CommonJS 支持。*
#5 中级

rollup-plugin-terser 在项目中如何使用?

How to use rollup-plugin-terser in projects?

**How to use rollup-plugin-terser in projects?**
- *考察点:代码压缩优化。*
#6 中级

插件的执行顺序会影响打包结果吗?为什么?

**Does the execution order of plugins affect the bundling results? Why?**
- *考察点:插件顺序影响。*
#7 中级

Rollup 插件如何与外部工具(如 Babel、TypeScript)协作?

How do Rollup plugins collaborate with external tools (like Babel, TypeScript)?

**How do Rollup plugins collaborate with external tools (like Babel, TypeScript)?**
- *考察点:插件与工具集成。*
#8 中级

如何进行 Rollup 打包结果的性能优化?

How to optimize the performance of Rollup bundling results?

**How to optimize the performance of Rollup bundling results?**
- *考察点:性能优化策略。*
#9 中级

如何调试和排查 Rollup 插件相关问题?

How to debug and troubleshoot Rollup plugin-related issues?

**How to debug and troubleshoot Rollup plugin-related issues?**
- *考察点:插件调试方法。*
#10 中级

Rollup 的打包过程中如何处理循环依赖?

How does Rollup handle circular dependencies during the bundling process?

**How does Rollup handle circular dependencies during the bundling process?**
- *考察点:依赖关系处理。*