Skip to content

Commit 70bce90

Browse files
appsforartistsbringking
authored andcommitted
feat(repo): Include module name in AMD definition
RequireJS needs to know which name to register an AMD module under. The name was previously mixing; this PR fixes that.
1 parent 5cab6a8 commit 70bce90

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

webpack.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ var config = {
2828
]
2929
},
3030
output: {
31-
library: 'ReactWebAnimation',
32-
libraryTarget: 'umd'
31+
library: {
32+
root: 'ReactWebAnimation',
33+
amd: 'react-web-animation',
34+
},
35+
libraryTarget: 'umd',
36+
umdNamedDefine: true,
3337
},
3438
plugins: [
3539
new LodashModuleReplacementPlugin(),

0 commit comments

Comments
 (0)