So when one is developing an npm/webpack project and using fengari-web, it is hard to debug anything that comes from fengari. And even though there is a source map, there's no way for my webpack project to expose that to the browser, because fengari-web is using the odd hidden-source-map devtool in its webpack config. This prevents any debugging in the browser.
That said, could you please consider using source-map instead? The part that is missing is the reference to the source map from the bundled JS blob. From webpack's docs:
hidden-source-map - Same as source-map, but doesn't add a reference comment to the bundle. Useful if you only want SourceMaps to map error stack traces from error reports, but don't want to expose your SourceMap for the browser development tools.
So when one is developing an npm/webpack project and using fengari-web, it is hard to debug anything that comes from fengari. And even though there is a source map, there's no way for my webpack project to expose that to the browser, because fengari-web is using the odd
hidden-source-mapdevtool in its webpack config. This prevents any debugging in the browser.That said, could you please consider using
source-mapinstead? The part that is missing is the reference to the source map from the bundled JS blob. From webpack's docs: