Skip to content

Commit

Permalink
Configure two entries in webpack: sender and listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Mar 6, 2023
1 parent c3307bb commit e19e536
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ module.exports = {
experiments: {
outputModule: true,
},
entry: "./src/index.ts",
entry: {
sender: "./src/connect.ts",
listener: "./src/index.ts"
},
devtool: "source-map",
output: {
path: path.resolve(__dirname, "dist"),
filename: "simple-iframe-rpc.js",
filename: "simple-iframe-rpc.[name].js",
asyncChunks: false,
library: {
name: "simpleIframeRpc",
Expand Down

0 comments on commit e19e536

Please sign in to comment.