web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.04k stars 573 forks source link

[Feature]: Support experiments.schemes.HttpUriPlugin #8490

Open GiveMe-A-Name opened 2 days ago

GiveMe-A-Name commented 2 days ago

What problem does this feature solve?

Webpack 5 supports handling of 'http(s)' in requests by using webpack.experiments.schemes.HttpUriPlugin.

What does the proposed API of configuration look like?

Align webpack, support rspack.experiments.schemes.HttpUriPlugin.

const {
    experiments: {
        schemes: { HttpUriPlugin }
    }
} = require("@rspack/core");