add compile for helpping generate sourcemap