set eventSyncer as entry point, and change target to commonjs2

This commit is contained in:
Richard Ramos 2019-08-19 15:28:43 -04:00
parent 8c86cf7f9c
commit a8d5efecfd
1 changed files with 3 additions and 3 deletions

View File

@ -2,12 +2,12 @@ const path = require('path');
const webConfig = { const webConfig = {
target: 'web', target: 'web',
entry: path.join(__dirname, "src/index.js"), entry: path.join(__dirname, "src/eventSyncer.js"),
output: { output: {
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
filename: 'browser.js', filename: 'browser.js',
library: 'phoenix', library: 'phoenix',
libraryTarget: 'var' libraryTarget: 'commonjs2'
}, },
node: { node: {
fs: 'empty', fs: 'empty',
@ -17,7 +17,7 @@ const webConfig = {
const nodeConfig = { const nodeConfig = {
target: "node", target: "node",
entry: path.join(__dirname, "src/index.js"), entry: path.join(__dirname, "src/eventSyncer.js"),
output: { output: {
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
filename: "node.js", filename: "node.js",