adobe / adobe-dx

A toolkit for AEM to help build exceptional digital experiences.
Apache License 2.0
35 stars 33 forks source link

Add sourcemaps for npm run watch #177

Closed chrischrischris closed 3 years ago

chrischrischris commented 3 years ago

Source maps were not working when working on author libraries.

Description

The eval-* source maps are recommended, but no matter what config was tried I would get ReferenceError: __webpack_require__ is not defined

However the non eval inline-source-map does work. It is claimed that this is the slowest compiling of all the source maps, but in my testing the times are maybe 1 second slower. This may be due to the small size of the codebase but for now seems acceptable vs not having source maps at all when developing.