I found this in the keystonejs source code:
keystone.import('models');
Sublime text gives warning:
Expected an identifier and instead saw 'import' (a reserved word), Line 34, Column 8
Also, I searched the whole node module (keystonejs) and can't find import method defined. Can't find it on google either.
I know that the import
is a new native feature in ES6, but I didn't know it could be a method of an object.
Is this a native method? Or is it defined by the module somewhere, and if it is, why can't I find it?