Skip to content

Commit

Permalink
Only use add-module-exports plugin for bower build
Browse files Browse the repository at this point in the history
Fixes #193
Closes #196
  • Loading branch information
cookpete committed Jul 13, 2017
1 parent a5b71b6 commit 84d6c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
},
"production": {
"plugins": [
"add-module-exports",
"transform-es3-member-expression-literals",
"transform-es3-property-literals"
]
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ module.exports = {
loaders: [{
test: /\.js$/,
loader: 'babel-loader',
include: path.join(__dirname, 'src')
include: path.join(__dirname, 'src'),
query: {
// Use add-module-exports to remove need
// for ReactPlayer.default in browsers
plugins: ['add-module-exports']
}
}]
},
externals: {
Expand Down

0 comments on commit 84d6c35

Please sign in to comment.