Open fasterthanlime opened 7 years ago
Quick update: using context
to pass inputSourceMap breaks the inline html compiler. Fixing now
Quick update: using context to pass inputSourceMap breaks the inline html compiler. Fixing now
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.
Latest semantics:
test
environment, let me know).coverage: true
does the same thing as before (except only in test)coverage: { /* opts */ }
passes options to babel-plugin-istanbul, like include
and exclude
, see documentation in https://github.com/fasterthanlime/electron-compile/commit/4b232377bb47a81f80c87e3ace1a8e4b88d6cedbNew find! While babel:
inputSourceMap
sourceMaps: "inline"
option...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.
See https://github.com/electron/electron-compilers/issues/76
coverage
option for both typescript and babel compilers