electron-userland / electron-compilers

DEPRECATED: Compiler implementations for electron-compile
35 stars 55 forks source link

feat(compilers): emit sourceMap object if available #56

Closed kwonoj closed 7 years ago

kwonoj commented 7 years ago

This PR forwards source map object generated by compiler (for now babel and TypeScript only), into compile result object. This property will be filled if compiler option specifies to enable non-inline source map, someone who wants to have separate source map in some usecases (like production code, to uploade source map into telemetry / analytics to reconstruct mapped stack traces from release build).

Still, this change doesn't enable complete source map consumption since electron-compile doesn't utilize this property yet at this moment. This PR is ground work to make changes into electron-compile.

kwonoj commented 7 years ago

Updated PR to forward stringified sourcemap for both compilers.