Appearance
Are you an LLM? You can read better optimized documentation at /options/module-types.md for this page in Markdown format
moduleTypes
类型:
Record<string, 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | 'css' | 'asset'>¥Type:
Record<string, 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | 'css' | 'asset'>默认值:标准扩展(js、jsx、ts、tsx、json、css、txt)具有内置模块类型
¥Default: Standard extensions (js, jsx, ts, tsx, json, css, txt) have built-in module types
可选:是 ✅
¥Optional: Yes ✅
将文件模式映射到模块类型,控制文件的处理方式。这在概念上类似于 esbuild 的 loader 选项,允许你指定如何处理不同的文件扩展名。
¥Maps file patterns to module types, controlling how files are processed. This is conceptually similar to esbuild's loader option, allowing you to specify how different file extensions should be handled.