electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

feat(saveSourceMap): honor source folder hierarchy #186

Open kwonoj opened 7 years ago

kwonoj commented 7 years ago

This PR is following changes to #185 and improves behavior of saving sourcemap, by honoring appRoot and create relative path under sourcemapPath when generates sourcemap.

This behavior supports 2 usecases,

Now with this PR by default it honors appRoot and construct same hierarchies, and if someone need to flatten sourcemap can do after compilation is done. (manually).