Vulcan/packages/nova-posts/lib/imports.js
2016-06-16 11:34:13 +09:00

25 lines
No EOL
513 B
JavaScript

// stubs for NPM compatibility
const returnEmptyObject = function () {
return {};
}
console.log(Mongo)
const Mongo = typeof Mongo !== "undefined" ? Mongo : {
Collection: function () {
return {attachSchema: returnEmptyObject}
}
};
console.log("// Mongo")
console.log(Mongo)
const Meteor = typeof Meteor !== "undefined" ? Meteor : {
methods: returnEmptyObject
};
const SimpleSchema = typeof SimpleSchema !== "undefined" ? SimpleSchema : returnEmptyObject;
const Foo = "bar"
export { Mongo, Foo }