electron-userland / electron-compilers

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

typescript+babel and coverage improvements #77

Open fasterthanlime opened 7 years ago

fasterthanlime commented 7 years ago

See https://github.com/electron/electron-compilers/issues/76

fasterthanlime commented 7 years ago

Quick update: using context to pass inputSourceMap breaks the inline html compiler. Fixing now

fasterthanlime commented 7 years ago

Quick update: using context to pass inputSourceMap breaks the inline html compiler. Fixing now

Fixed in https://github.com/electron/electron-compilers/pull/77/commits/262476a5939ac545f62f5ea83e6fcf6127c2e152

fasterthanlime commented 7 years ago

Another quick change I'm about to make: forward coverageInclude and coverageExclude keys to babel-plugin-instrument.

It's not possible to use the nyc block in package.json method unfortunately, because inputSourceMap is already passed directly to babel-plugin-instrument, so it doesn't even look at the package.json.

fasterthanlime commented 7 years ago

Latest semantics:

fasterthanlime commented 7 years ago

New find! While babel:

...if you specify inputSourceMap, sourceMaps is forced to true rather than "inline", so if you enable coverage on my branch, you don't get inline source maps. Fixing that now.