Are you an LLM? You can read better optimized documentation at /options/input.md for this page in Markdown format
input
- Type:
string | string[] | Record<string, string> - Optional: No ⚠️
Defines entries and location(s) of entry modules for the bundle. Relative paths are resolved based on the cwd option.
Examples
Single entry
js
export default defineConfig({
input: 'src/index.js',
});Multiple entries
js
export default defineConfig({
input: ['src/index.js', 'src/vendor.js'],
});Named multiple entries
js
export default defineConfig({
input: {
'index': 'src/index.js',
'utils': 'src/utils/index.js',
'components': 'src/components/index.js',
},
});In-depth
input allows you to specify one or more entries with names for the bundling process.
When multiple entries are specified (either as an array or an object), Rolldown will create separate entry chunks for each entry.