mirror of https://github.com/webpack/webpack.git
27 lines
444 B
JavaScript
27 lines
444 B
JavaScript
"use strict";
|
|
|
|
/** @type {import("../../../../types").Configuration} */
|
|
module.exports = {
|
|
entry: { main: "./index.js" },
|
|
output: {
|
|
module: true,
|
|
library: {
|
|
type: "module"
|
|
},
|
|
filename: "[name].mjs",
|
|
chunkFormat: "module"
|
|
},
|
|
experiments: {
|
|
outputModule: true
|
|
},
|
|
resolve: {
|
|
extensions: [".js"]
|
|
},
|
|
externals: ["fs", "path"],
|
|
externalsType: "module",
|
|
optimization: {
|
|
concatenateModules: true,
|
|
usedExports: true
|
|
}
|
|
};
|