From df5dc2c69defd451e63805218a920107de032e55 Mon Sep 17 00:00:00 2001 From: David Burrows Date: Wed, 16 Nov 2016 12:19:37 +0000 Subject: [PATCH] add libraryTarget to dist webpack config --- webpack.dist.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.dist.config.js b/webpack.dist.config.js index ced4280..e03962d 100644 --- a/webpack.dist.config.js +++ b/webpack.dist.config.js @@ -10,7 +10,8 @@ module.exports = { }, output: { path: './dist', - filename: "index.js" + filename: "index.js", + libraryTarget: 'commonjs' }, externals: ['react', 'react-dom'], module: {