How can I disable globals in my Meteor app?


#1

So I have been moving my app to fully use modules. I know we can’t remove all atmosphere packages but is there a way I can disable Meteor globals? If not, can I perform linting and check for globals so that I can get rid of them?

Thanks!


#2

On the client, all your imported vars should be listed in http://localhost:3000/packages/global-imports.js.

In theory, you could use meteorhacks:inject-initial to remove the script tag that loads this line from your initial HTML :slight_smile:

Maybe I’ll write a package for this if there’s sufficient interest.


#3

Thanks. That’s helpful. What about the server-side?


#5

No, unfortunately it’s not as easy to hack the server like this. You’ll have to rely on linting for the server side, for now.