From a8d5efecfdc61763a101a72acc818a48ccf2f947 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 19 Aug 2019 15:28:43 -0400 Subject: [PATCH] set eventSyncer as entry point, and change target to commonjs2 --- webpack.common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index fc9ba54..0b5f294 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -2,12 +2,12 @@ const path = require('path'); const webConfig = { target: 'web', - entry: path.join(__dirname, "src/index.js"), + entry: path.join(__dirname, "src/eventSyncer.js"), output: { path: path.resolve(__dirname, "dist"), filename: 'browser.js', library: 'phoenix', - libraryTarget: 'var' + libraryTarget: 'commonjs2' }, node: { fs: 'empty', @@ -17,7 +17,7 @@ const webConfig = { const nodeConfig = { target: "node", - entry: path.join(__dirname, "src/index.js"), + entry: path.join(__dirname, "src/eventSyncer.js"), output: { path: path.resolve(__dirname, "dist"), filename: "node.js",