mirror of https://github.com/webpack/webpack.git
30 lines
470 B
JavaScript
30 lines
470 B
JavaScript
"use strict";
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = () => ({
|
|
devtool: false,
|
|
mode: "development",
|
|
entry: {
|
|
main: {
|
|
import: "./index.js",
|
|
dependOn: "shared"
|
|
},
|
|
shared: "./common.js"
|
|
},
|
|
output: {
|
|
filename: "[name].mjs",
|
|
library: {
|
|
type: "module"
|
|
}
|
|
},
|
|
target: ["web", "es2020"],
|
|
experiments: {
|
|
outputModule: true
|
|
},
|
|
optimization: {
|
|
minimize: false,
|
|
runtimeChunk: false,
|
|
concatenateModules: true
|
|
}
|
|
});
|