imports-loader

Meteor Wonky Magic imports

爷,独闯天下 提交于 2019-12-24 21:17:13
问题 I've been using meteor for a little while now, and am running into an unexpected behavior I've got my file system set up like: -workspace -client -server -shared -shared.js Inside of shared.js I create my mongo collections: Collection= new Mongo.Collection('collection'); I can then reference them as global variable from anywhere in my app. The interesting part is: I never once use the word 'shared' in my project, meaning, I never imported this file, I never required this file, it's loading by