set eventSyncer as entry point, and change target to commonjs2
This commit is contained in:
parent
8c86cf7f9c
commit
a8d5efecfd
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue