Search⌘ K
AI Features

Loading the Meteor

Explore how Meteor.js manages file loading through eager and lazy mechanisms and understand the use of default and named exports. This lesson helps you grasp how to organize and import JavaScript modules effectively within a Meteor project.

Default export

Files and variables must be exported before they can be imported and used elsewhere. We can do this by using the ES2015 export statement. The code snippet below exports a function called addNumbers from addition.js. We then import this function ...