TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
873 stars 228 forks source link

Sourcemaps cause warnings because src files are not included in distribution #125

Closed gkjohnson closed 1 year ago

gkjohnson commented 2 years ago

Hello! I'm seeing some warnings with Webpack source-map-loader when building a project with this project as a dependency because the src files are not included in the distribution but are referenced via the source maps:

WARNING in ./node_modules/https-proxy-agent/dist/parse-proxy-response.js
  Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
  Failed to parse source map from '<local path>/node_modules/https-proxy-agent/src/parse-proxy-response.ts' file: Error: ENOENT: no such file or directory, open '<local path>/node_modules/https-proxy-agent/src/parse-proxy-response.ts'

I believe adding the "src" folder to the list of published files would fix this.

TooTallNate commented 1 year ago

This module has gone through a large refactor and modernization. I am closing this issue as a bit of house cleaning. If you feel that this issue still exists in the latest release, feel free to open a new issue.