Exclude a Module from the compile

I just wanted to double-check my understanding that if a Module (or any other object for that matter…) has all the “Include In” checkboxes unchecked, then the Module with not be included in a compiled build?

Note: The IDE won’t allow you uncheck both API checkboxes, but I don’t think they matter at compile time.

The reason I ask is because I use Julian Samphire’s ReformatCode script (which includes a Module), plus I’ve got a Module that just has a bunch of “Notes” that contains instructions and other useful information to myself. Which is handy to have in whatever project I have open.

I just want to know that I’m not bloating my finished build unnecessarily.

What do you folks think?

I think that unless the module contains picture files, it’s very unlikely to make any appreciable difference in your app’s ending size.

1 Like

Notes are like comments inside a code, it does not get into the binary. That would end as an empty module for the compiler that should just ignore such module and not render a byte about it.

1 Like