Skip to content

Commit

Permalink
feat(repo): Include module name in AMD definition
Browse files Browse the repository at this point in the history
RequireJS needs to know which name to register an AMD module under.  The name was previously mixing; this PR fixes that.
  • Loading branch information
appsforartists authored and bringking committed Jan 18, 2018
1 parent 5cab6a8 commit 70bce90
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ var config = {
]
},
output: {
library: 'ReactWebAnimation',
libraryTarget: 'umd'
library: {
root: 'ReactWebAnimation',
amd: 'react-web-animation',
},
libraryTarget: 'umd',
umdNamedDefine: true,
},
plugins: [
new LodashModuleReplacementPlugin(),
Expand Down

0 comments on commit 70bce90

Please sign in to comment.