Skip to content

Commit f291e6c

Browse files
committed
refactor: Remove unnecessary sass-loader compat
1 parent ef58367 commit f291e6c

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

packages/cli/src/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
* @param {import('../../../types').Env} env
6350
* @returns {import('webpack').Configuration}
@@ -185,7 +172,12 @@ module.exports = function createBaseConfig(config, env) {
185172
options: {
186173
cwd,
187174
loader: tryResolveOptionalLoader('sass-loader'),
188-
options: getSassConfiguration(...nodeModules),
175+
options: {
176+
sourceMap: true,
177+
sassOptions: {
178+
includePaths: [...nodeModules],
179+
},
180+
},
189181
},
190182
},
191183
],

0 commit comments

Comments
 (0)