Skip to content

Commit b7b9084

Browse files
authored
fix: lightningcss-loader should not receive js comments (#271)
1 parent 7e401f0 commit b7b9084

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

rspack/lightingcss-loader/rspack.config.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config = {
55
module: {
66
rules: [
77
{
8-
test: /answer\.css$/,
8+
test: /\.css$/,
99
use: [
1010
{
1111
loader: 'builtin:lightningcss-loader',
@@ -17,28 +17,12 @@ const config = {
1717
],
1818
type: 'css',
1919
},
20-
{
21-
test: /.css$/,
22-
use: [
23-
rspack.CssExtractRspackPlugin.loader,
24-
'css-loader',
25-
{
26-
loader: 'builtin:lightningcss-loader',
27-
/** @type {import('@rspack/core').LightningcssLoaderOptions} */
28-
options: {
29-
targets: 'ie 10',
30-
},
31-
},
32-
],
33-
type: 'javascript/auto',
34-
},
3520
],
3621
},
3722
plugins: [
3823
new rspack.HtmlRspackPlugin({
3924
template: './index.html',
4025
}),
41-
new rspack.CssExtractRspackPlugin(),
4226
],
4327
experiments: {
4428
css: true,

0 commit comments

Comments
 (0)