Skip to content

Commit f1cb675

Browse files
committed
chore: Remove old & unused compat code
1 parent 399d7ec commit f1cb675

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

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

Lines changed: 6 additions & 15 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
],
@@ -326,7 +318,6 @@ module.exports = function createBaseConfig(config, env) {
326318
},
327319
},
328320
}),
329-
isProd && new webpack.LoaderOptionsPlugin({ minimize: true }),
330321
new webpack.optimize.ModuleConcatenationPlugin(),
331322

332323
// strip out babel-helper invariant checks

0 commit comments

Comments
 (0)