Skip to content

Commit

Permalink
fix: add Object.assign ponyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromir-hristov committed Jul 18, 2018
1 parent 857de14 commit 4ef4fea
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/bundle.umd.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"standard-version": "^4.2.0"
},
"dependencies": {
"@vimeo/player": "^2.6.3"
"@vimeo/player": "^2.6.3",
"object-assign": "^4.1.1"
},
"peerDependencies": {
"vue": "^2.5.16"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default [
{
input: 'src/index.js',
output: { format: 'es', file: 'dist/bundle.es.js' },
external: ['@vimeo/player'],
external: ['@vimeo/player', 'object-assign'],
plugins: [
resolve({
customResolveOptions: {
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Player from '@vimeo/player'
import assign from 'object-assign'

let pid = 0

Expand Down Expand Up @@ -103,7 +104,7 @@ export default {
autoplay: this.autoplay
}

this.player = new Player(this.elementId, Object.assign(options, this.options))
this.player = new Player(this.elementId, assign(options, this.options))

this.setEvents()
},
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ oauth-sign@~0.8.1:
version "0.8.2"
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"

object-assign@^4.0.1, object-assign@^4.1.0:
object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"

Expand Down

0 comments on commit 4ef4fea

Please sign in to comment.