Skip to content

Commit 3445f71

Browse files
committed
chore: remove useless code
1 parent 1682dac commit 3445f71

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

packages/core/src/asset/assetConfig.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,16 @@ const pluginLibAsset = ({ bundle }: { bundle: boolean }): RsbuildPlugin => ({
121121

122122
// css-asset
123123
// preserve './' in css url
124-
// https://github.com/web-infra-dev/rspack/pull/8946
124+
// in bundleless, we set this in libCssExtractLoader
125+
// in bundle, we set this by https://github.com/web-infra-dev/rspack/pull/8946
125126
if (bundle) {
126127
config.plugins.get(CHAIN_ID.PLUGIN.MINI_CSS_EXTRACT)?.tap((options) => {
127-
if (bundle) {
128-
return [
129-
{
130-
...options[0],
131-
enforceRelative: true,
132-
},
133-
];
134-
}
135-
return options;
128+
return [
129+
{
130+
...options[0],
131+
enforceRelative: true,
132+
},
133+
];
136134
});
137135
}
138136
});

0 commit comments

Comments
 (0)