mantra-cli icon indicating copy to clipboard operation
mantra-cli copied to clipboard

Remove undefined when using `mantra generate collection`

Open adrianliaw opened this issue 8 years ago • 1 comments

The initial lib/collections/index.js looks like this:

export {
  undefined
};

So, after running mantra generate collection posts, it did add posts to the export object, but undefined was still there:

import posts from "./posts";

export {
  undefined
  posts
}

We need a way to remove that undefined when generating the first collection.

adrianliaw avatar Feb 24 '16 03:02 adrianliaw

undefined is there because of a babel issue see https://github.com/meteor/meteor/issues/6281. It will be removed when the issue is resolved. Therefore it is not a high priority. You can still do a PR.

sungwoncho avatar Feb 26 '16 23:02 sungwoncho