-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: url-dependency pos error (#5397)
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a {} |
4 changes: 4 additions & 0 deletions
4
packages/rspack/tests/configCases/asset-url/relative/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
it("should compile", () => { | ||
const url = new URL("./index.css?query=yes#fragment", import.meta.url).href; | ||
expect(url).toBeDefined(); | ||
}); |
16 changes: 16 additions & 0 deletions
16
packages/rspack/tests/configCases/asset-url/relative/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** @type {import("@rspack/core").Configuration} */ | ||
module.exports = { | ||
mode: "development", | ||
devtool: false, | ||
output: { | ||
assetModuleFilename: "[name][ext][query][fragment]", | ||
publicPath: "public/" | ||
}, | ||
module: { | ||
parser: { | ||
javascript: { | ||
url: "relative" | ||
} | ||
} | ||
} | ||
}; |
800542b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Benchmark detail: Open