MCPcopy
hub / github.com/webpack/sass-loader / module

Function module

test/helpers/getCompiler.js:14–30  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

12 * @returns {Configuration} config with module rules
13 */
14const module = (config) => ({
15 rules: config.rules || [
16 {
17 test: (config.loader && config.loader.test) || /\.s[ac]ss$/i,
18 resolve: config.loader.resolve,
19 use: [
20 {
21 loader: path.join(__dirname, "./testLoader.cjs"),
22 },
23 {
24 loader: path.join(__dirname, "../../src/index.js"),
25 options: (config.loader && config.loader.options) || {},
26 },
27 ],
28 },
29 ],
30});
31
32/**
33 * @param {Configuration} config config

Callers 1

getCompilerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…