-
-
Notifications
You must be signed in to change notification settings - Fork 611
Closed
Description
- Rollup Plugin Name: @rollup/plugin-alias
- Rollup Plugin Version: 3.1.1
Feature Use Case
Currently, the alias plugin only support string value for the replacement, not an array. This behavior is different from how other tools (like jest, typescript, webpack) handle aliases.
Feature Proposal
Could we support something like this:
...
plugins: [
alias({
// standard config
entries: [
{ find: 'utils', replacement: ['../../../utils', '../../../utils2'] },
]
// object format
entries: {
utils: ['../../../utils', '../../../utils2'],
}
})
]Metadata
Metadata
Assignees
Labels
No labels