We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1682dac commit 3445f71Copy full SHA for 3445f71
packages/core/src/asset/assetConfig.ts
@@ -121,18 +121,16 @@ const pluginLibAsset = ({ bundle }: { bundle: boolean }): RsbuildPlugin => ({
121
122
// css-asset
123
// preserve './' in css url
124
- // https://github.com/web-infra-dev/rspack/pull/8946
+ // in bundleless, we set this in libCssExtractLoader
125
+ // in bundle, we set this by https://github.com/web-infra-dev/rspack/pull/8946
126
if (bundle) {
127
config.plugins.get(CHAIN_ID.PLUGIN.MINI_CSS_EXTRACT)?.tap((options) => {
- if (bundle) {
128
- return [
129
- {
130
- ...options[0],
131
- enforceRelative: true,
132
- },
133
- ];
134
- }
135
- return options;
+ return [
+ {
+ ...options[0],
+ enforceRelative: true,
+ },
+ ];
136
});
137
}
138
0 commit comments