Skip to content

Commit

Permalink
Merge pull request #5 from nobrainr/fix/npm-package
Browse files Browse the repository at this point in the history
fix: add library target module in webpack
  • Loading branch information
emyann authored Nov 15, 2018
2 parents 854e4b1 + 07f2461 commit f6cf432
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 f6cf432

Please sign in to comment.