Skip to content

Commit 18629d9

Browse files
committed
refactor: Remove unnecessary sass-loader compat
1 parent bd44545 commit 18629d9

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

packages/cli/lib/lib/webpack/webpack-base-config.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,6 @@ function resolveTsconfig(cwd, isProd) {
4545
}
4646
}
4747

48-
function getSassConfiguration(...includePaths) {
49-
const config = {
50-
sourceMap: true,
51-
sassOptions: {
52-
includePaths,
53-
},
54-
};
55-
56-
Object.defineProperty(config, 'includePaths', { value: includePaths });
57-
58-
return config;
59-
}
60-
6148
/**
6249
* @returns {import('webpack').Configuration}
6350
*/
@@ -177,7 +164,12 @@ module.exports = function createBaseConfig(env) {
177164
options: {
178165
cwd,
179166
loader: tryResolveOptionalLoader('sass-loader'),
180-
options: getSassConfiguration(...nodeModules),
167+
options: {
168+
sourceMap: true,
169+
sassOptions: {
170+
includePaths: [...nodeModules],
171+
},
172+
},
181173
},
182174
},
183175
],

0 commit comments

Comments
 (0)