Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build in commonjs2 mode for node
  • Loading branch information
arjunkathuria committed Feb 26, 2019
1 parent 9d8dc89 commit ad54e6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webpack.config.js
Expand Up @@ -11,7 +11,7 @@ module.exports = {
"react-smooth-image": path.resolve(__dirname, "src/index.js")
},
devtool: "source-map",
target: "web",
target: "node",
mode: "production",
externals: {
react: {
Expand Down Expand Up @@ -39,8 +39,7 @@ module.exports = {
publicPath: "/",
filename: "[name].js",
library: "ReactSmoothImage",
libraryTarget: "umd",
umdNamedDefine: true
libraryTarget: "commonjs2",
},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
Expand Down

0 comments on commit ad54e6d

Please sign in to comment.