mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-11-26 18:21:00 +00:00
!3845 emit add return meta
Merge pull request !3845 from 李欣楠/emitCallBackAddMeta_master
This commit is contained in:
commit
46d31bc087
@ -466,7 +466,10 @@ async function transform(code: string, id: string) {
|
||||
return shouldEmitJsFlag ? {
|
||||
code: emitResult.outputText,
|
||||
// Use magicString to generate sourceMap because of Typescript do not emit sourceMap in some cases
|
||||
map: emitResult.sourceMapText ? JSON.parse(emitResult.sourceMapText) : new MagicString(code).generateMap()
|
||||
map: emitResult.sourceMapText ? JSON.parse(emitResult.sourceMapText) : new MagicString(code).generateMap(),
|
||||
meta: {
|
||||
shouldEmitJs: shouldEmitJsFlag
|
||||
}
|
||||
} : printSourceFile(transformResult.transformed[0], compilationTime);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user