nevware21 / ts-utils

Common JavaScript functions for TypeScript
MIT License
4 stars 1 forks source link

[BUG] Sourcemap load errors in debugger from @nevware21 dependencies #332

Closed nev21 closed 1 week ago

nev21 commented 1 week ago

Need to investigate the generated source map paths, to normalize them.

See https://github.com/microsoft/ApplicationInsights-JS/issues/2424

nev21 commented 1 week ago

I suspect that the only reason that this was an issue is because the final consuming source map files (the end package that includes this package) was using external source map definitions rather than the internal included as part of this package.

So to support this scenario this required a few minor changes as both the actual generated build folder and the original src are explicitly not included in the npm package so that the resulting package size remains as small as possible (this is also the reason why the previously generated pre-bundled type where removed).

So the changes required consisted of