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 = {
|
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",
|
||||||
|
|
Loading…
Reference in New Issue