L[] is shared across multiple files, but not available globally.  Pass it through the addon's namespace between files.