2.0.0-rc.2
http://jsfiddle.net/af3cq646/1/
var CUSTOM = Vue.component('custom',{name:'custom'});
console.log(new CUSTOM());
run fiddle and open console
no warning and component showing up with the name 'custom'
warning "_[Vue warn]: options "name" can only be used as a component definition option, not during instance creation
_" and component is named "VueComponent
"
Can confirm this, came across this yesterday as well.
Name in console is still "VueComponent" in version 2.0.0-rc.3 !?
2.0 doesn't use new Function
to change constructor name anymore (this is to make the whole runtime build CSP-compliant) - the name
option only affects debug messages and vue-devtools inspection.