Skip to content

Commit

Permalink
Fix: webpack devserver build bug
Browse files Browse the repository at this point in the history
Related to importing/parsing XMLHttpRequest

See: webpack/webpack-dev-server#66
  • Loading branch information
rdig committed Oct 8, 2018
1 parent 4398a09 commit a16b594
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ const config = {
contentBase: [path.resolve(__dirname, '..', 'colonyNetwork', 'build')],
hotOnly: true,
},
/*
* Fix for the XMLHttpRequest compile-time bug.
*
* See for more details:
* https://github.com/webpack/webpack-dev-server/issues/66
*/
externals:[{
xmlhttprequest: '{XMLHttpRequest:XMLHttpRequest}',
}],
};

module.exports = () => config;

0 comments on commit a16b594

Please sign in to comment.