File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
packages/cli/lib/lib/webpack Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments