Skip to content

Conversation

xiao-hu
Copy link

@xiao-hu xiao-hu commented Dec 16, 2018

onScriptLoaded should be added to ScriptLoader instead of scriptLoader, otherwise it will throw error 'onScriptLoaded is undefined' when it is not provided.

`onScriptLoaded` should be added to `ScriptLoader` instead of `scriptLoader`, otherwise it will throw error 'onScriptLoaded is undefined' when it is not provided.
@AndrewLowther
Copy link
Owner

@xiao-hu Thank you very much for your PR. One slight change to this, in the .babelrc file can you please add the following to the plugins:

"plugins": [
  ...
  "@babel/plugin-proposal-class-properties"
]

That should fix the build

@AndrewLowther AndrewLowther self-requested a review December 17, 2018 14:58
@AndrewLowther AndrewLowther added the bug Something isn't working label Dec 17, 2018
Copy link
Owner

@AndrewLowther AndrewLowther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@AndrewLowther AndrewLowther merged commit 0761c78 into AndrewLowther:master Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants