-
-
Notifications
You must be signed in to change notification settings - Fork 781
Open
Labels
featNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
What problem does this feature solve?
Currently, Rspack config.module.parser.asset.dataUrlCondition only support object.
We can't compute the dataUrlCondition.maxSize by function.
What does the proposed API of configuration look like?
Align webpack, Module.parser.asset.dataUrlCondition support function.
module.exports = {
module: {
parser: {
asset: {
dataUrlCondition: (source, { filename, module }) => {
return condition(source)
}
},
},
},
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.