From 70bce90b7f1df2bbcbf9bfd4a638a20952b3bc33 Mon Sep 17 00:00:00 2001 From: Brenton Simpson Date: Wed, 17 Jan 2018 15:22:47 -0800 Subject: [PATCH] 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. --- webpack.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 2d49369..daf40d9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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(),