Open GDUTxxZ opened 5 years ago
I think so, thanks.
Not really, export default
statement is used with the value that we want to be imported by default when someone else requires
out module. So when we use require('vue-resource')
expression, the default export from the module vue-resourse
will be returned - plugin
function.
the example in docs about how to import the module:
but in source code, the moudle export like:
so actually we should use the module like:
What is Expected?
May be the docs should be updated? docs