After the release of Meteor 1.7 and this blog post:
Now we can use “meteor.mainModule” in our package.json to enable lazy loading in all the folders.
I quote: “In other words, you no longer need an imports/ directory”.
But what should our Application Structure look like ?
If we don’t need the imports folder, should we remove it ? Rename it ?
You can use the same structure. Just move everything in imports to the top level and declare a meteor.mainModule pointing to the start files of your application.
I’m starting a green-field project with Meteor now. I’m using Meteor 1.7.1-beta.29. Of course I do not want to use the /imports directory. And I don’t want to eagerly load.
In order to not use the imports directory, I now have to specify a meteor.mainModule option in the package.json file like so?