-
-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
web-infra-dev/rspack
#7812Labels
bugSomething isn't workingSomething isn't working
Description
Version
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M1
Memory: 121.88 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 128.0.6613.113
Safari: 17.6
npmPackages:
@rsbuild/core: 1.0.1-beta.15 => 1.0.1-beta.15Details
Problem
When migrating a project from Webpack to RsBuild, I've encountered an "Invalid URL" error during the build/development process. This issue specifically occurs when using the html-loader in conjunction with rspack.htmlRspackPlugin or html-webpack-plugin. It seems the parsing of src attributes within HTML tags is triggering this error.
Expected Behavior
The build process should complete successfully without any errors, correctly processing the HTML files and resolving the asset paths.
Actual Behavior
An "Invalid URL" error is thrown during the build, indicating an issue with parsing the src attribute in HTML tags.
Reproduce link
https://github.com/BrinsilElias/rsbuild-html-loader
Reproduce Steps
Steps to Reproduce
- Set up a project using RsBuild with
rspack.htmlRspackPluginorhtml-webpack-plugin. - Include
html-loaderin the configuration to process HTML files. Within an HTML file, use tags like<img>withsrcattributes pointing to assets. - Run
pnpm run buildorpnpm run dev
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working