Skip to content

Commit

Permalink
fix: add library target module in webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Nov 15, 2018
1 parent 733a05e commit 07f2461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ var config = {
},
output: {
path: path.resolve('./dist'),
filename: 'axios-morphism.js'
filename: 'axios-morphism.js',
library: 'axios-morphism',
libraryTarget: 'commonjs-module'
},
module: {
rules: [
Expand Down

0 comments on commit 07f2461

Please sign in to comment.