Skip to content

Commit

Permalink
chore: Remove old & unused compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Dec 15, 2022
1 parent 399d7ec commit f1cb675
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions packages/cli/src/lib/webpack/webpack-base-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ function resolveTsconfig(cwd, isProd) {
}
}

function getSassConfiguration(...includePaths) {
const config = {
sourceMap: true,
sassOptions: {
includePaths,
},
};

Object.defineProperty(config, 'includePaths', { value: includePaths });

return config;
}

/**
* @param {import('../../../types').Env} env
* @returns {import('webpack').Configuration}
Expand Down Expand Up @@ -185,7 +172,12 @@ module.exports = function createBaseConfig(config, env) {
options: {
cwd,
loader: tryResolveOptionalLoader('sass-loader'),
options: getSassConfiguration(...nodeModules),
options: {
sourceMap: true,
sassOptions: {
includePaths: [...nodeModules],
},
},
},
},
],
Expand Down Expand Up @@ -326,7 +318,6 @@ module.exports = function createBaseConfig(config, env) {
},
},
}),
isProd && new webpack.LoaderOptionsPlugin({ minimize: true }),
new webpack.optimize.ModuleConcatenationPlugin(),

// strip out babel-helper invariant checks
Expand Down

0 comments on commit f1cb675

Please sign in to comment.