Skip to content

Commit

Permalink
fix: test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 5, 2024
1 parent 8e87eb3 commit 0c2002e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ module.exports = {
}
},
{
loader: "sass-loader"
loader: "sass-loader",
options: {
// use legacy API to generate source maps
api: 'legacy'
}
}
],
type: "css",
Expand All @@ -32,5 +36,8 @@ module.exports = {
new rspack.DefinePlugin({
CONTEXT: JSON.stringify(__dirname)
})
]
],
experiments: {
css: true
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ module.exports = {
rules: [
{
test: /\.s[ac]ss$/i,
use: [{ loader: "sass-loader" }],
use: [
{
loader: "sass-loader",
options: {
// use legacy API to generate source maps
api: 'legacy'
}
}
],
type: "css",
generator: {
exportsOnly: false,
Expand All @@ -20,5 +28,8 @@ module.exports = {
new rspack.DefinePlugin({
CONTEXT: JSON.stringify(__dirname)
})
]
],
experiments: {
css: true
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ module.exports = {
rules: [
{
test: /\.s[ac]ss$/i,
use: [{ loader: "sass-loader" }],
use: [
{
loader: "sass-loader",
options: {
// use legacy API to generate source maps
api: 'legacy'
}
}
],
type: "css",
generator: {
exportsOnly: false
Expand All @@ -16,5 +24,8 @@ module.exports = {
},
devtool: "cheap-module-source-map",
externals: ["source-map"],
externalsType: "commonjs"
externalsType: "commonjs",
experiments: {
css: true
}
};

0 comments on commit 0c2002e

Please sign in to comment.