File size: 367 Bytes
4cadbaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

const path = require("path");
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin");



module.exports = {
	entry: {
		index: "./lib.browser/index.frontend.js",
	},
	output: {
		path: path.join(__dirname, "app/lib"),
		filename: "[name].mjs",
		library: "LIB",
		libraryTarget: "var",
	},
	plugins: [
		new EsmWebpackPlugin(),
	],
	mode: "development",
};