mirror of https://github.com/webpack/webpack.git
23 lines
338 B
JavaScript
23 lines
338 B
JavaScript
|
|
/** @type {import("../../../../").Configuration} */
|
||
|
|
module.exports = {
|
||
|
|
output: {
|
||
|
|
module: true
|
||
|
|
},
|
||
|
|
experiments: {
|
||
|
|
outputModule: true
|
||
|
|
},
|
||
|
|
target: "es2020",
|
||
|
|
optimization: {
|
||
|
|
splitChunks: {
|
||
|
|
cacheGroups: {
|
||
|
|
common: {
|
||
|
|
test: /common\.js/,
|
||
|
|
minSize: 0,
|
||
|
|
chunks: "all",
|
||
|
|
filename: "common.mjs"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|