Skip to content

Commit

Permalink
Fix UMD bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 25, 2016
1 parent 62d146a commit 1386bea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/APlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/APlayer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/APlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,4 +785,4 @@ class APlayer {
}
}

export {APlayer};
module.exports = APlayer;
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
output: {
path: BUILD_PATH,
filename: 'APlayer.min.js',
library: 'APlayer',
libraryTarget: 'umd',
umdNamedDefine: true
},
Expand Down

0 comments on commit 1386bea

Please sign in to comment.