mirror of https://github.com/webpack/webpack.git
20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
const path = require("path");
|
|
const webpack = require("../../../../");
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
/replacement.c$/,
|
|
path.resolve(__dirname, "modules"),
|
|
{
|
|
a: "./a",
|
|
b: "./module-b",
|
|
"./c": "./module-b",
|
|
d: "d",
|
|
"./d": "d"
|
|
}
|
|
)
|
|
]
|
|
};
|