Preserve module licenses in compile
Fix #24; Use onDrag instead of onResize