Skip to content

Instantly share code, notes, and snippets.

@jjcodes78
Last active September 1, 2016 15:16
Show Gist options
  • Save jjcodes78/1e5f6824e83a6515024b51d3f1cba59f to your computer and use it in GitHub Desktop.
Save jjcodes78/1e5f6824e83a6515024b51d3f1cba59f to your computer and use it in GitHub Desktop.
Import and create a non-ready-webpack/browserify Lib to use with VueJs
import { entry as Foo } from 'bar'
function MyFoo (args..., someProp) {
this.someProp = Object.assign({}, Foo.prototype.prop, someProp)
return Foo.call(this, args...)
}
MyFoo.prototype = Foo.prototype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment