Skip to content

[Feature]: Asset Module asset/source cannot be used together with dataUrl #8604

@GiveMe-A-Name

Description

@GiveMe-A-Name

What problem does this feature solve?

If set rules as asset/source, it would throw a Error: unreachable: unknow module type: asset/source

module.exports = {
  module: {
   rules: [
     {
        test: /\.jpg$/,
        type: "asset/source",
        generator: {
        dataUrl: {
           mimetype: "text/plain"
	}
     }
   ]
  }
};

What does the proposed API of configuration look like?

https://github.com/webpack/webpack/tree/main/test/configCases/contenthash/assets

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomefeatNew feature or requestteamThe issue/pr is created by the member of Rspack.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions