Skip to content

Commit

Permalink
adding appropriate libraryTarget to webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
esr360 committed Jan 11, 2018
1 parent a7aa3d5 commit c635b9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/synergy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default function(env) {
output: {
path: path.resolve(__dirname, 'dist/'),
filename: '[name].js',
publicPath: '/'
publicPath: '/',
libraryTarget: (target === 'node') ? 'commonjs2' : 'var'
},

target,
Expand Down

0 comments on commit c635b9a

Please sign in to comment.