webpack/test/configCases/source-map/source-map-with-profiling-p.../webpack.config.js

24 lines
439 B
JavaScript
Raw Normal View History

2025-04-22 18:49:30 +08:00
const webpack = require("../../../../");
const path = require("path");
const os = require("os");
2018-03-18 19:47:10 +08:00
/** @type {import("../../../../").Configuration} */
2018-03-18 19:47:10 +08:00
module.exports = {
node: {
__dirname: false,
__filename: false
},
entry: {
bundle0: ["./index.js"]
},
output: {
filename: "[name].js"
},
plugins: [
new webpack.debug.ProfilingPlugin({
outputPath: path.join(os.tmpdir(), "events.json")
})
],
devtool: "source-map"
};