The require("source-map-support").install() call in api.js causes conflicts when the Node.js application already uses source-map-support. This results in duplicated loading of source maps and can force the application to enable source maps even if disabled.
Proposed Solution:
Consider removing require("source-map-support").install() from api.js (at least for production) to avoid redundancy and allow the application to manage its own source map settings.
The
require("source-map-support").install()call in api.js causes conflicts when the Node.js application already uses source-map-support. This results in duplicated loading of source maps and can force the application to enable source maps even if disabled.Proposed Solution:
Consider removing require("source-map-support").install() from api.js (at least for production) to avoid redundancy and allow the application to manage its own source map settings.