Open GiveMe-A-Name opened 2 days ago
Currently, Rspack config.module.parser.asset.dataUrlCondition only support object. We can't compute the dataUrlCondition.maxSize by function.
Align webpack, Module.parser.asset.dataUrlCondition support function.
module.exports = { module: { parser: { asset: { dataUrlCondition: (source, { filename, module }) => { return condition(source) } }, }, }, };
If no one else is working on it, I can give it a try.
Yes, you can. Thanks your contribution firstly.
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.