i tried to make index.js auto detect if it was used as a plugin, and then require('./plugin') if it was. but, that means index.js and plugin.js depend on each other. that didn't work. i think to make it work, browser-pack-flat needs to add calls to the cyclical entry modules.