You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source maps need to added to the package. I currently have 157 warnings whenever I build my client because of the lack of source mapping. I've seen other people bring up this issue as well.
I know I can turn source mapping off, but that makes debugging in production more difficult.
Please update the package to contain the source maps so these warnings will go away.
The text was updated successfully, but these errors were encountered:
I think the reason why you're seeing such warnings is that in svix we are publishing the package with sourceMaps but without the corresponding TS files. I'll send a PR to publish src as well as dist, so the TS files are in the location pointed by the source maps.
svix-react does not publish sourceMaps (yet), so it shouldn't have the same issue.
## Motivation
We export source maps with the `svix` javascript package, but not the
corresponding source files.
Something like
`{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[].....`
in `index.js.map` throws an error since `../src/index.ts` can't be
found. This causes several warnings in certain bundlers.
## Solution
Add the source files to the files published to npm.
Closes#1299
Bug Report
Version
svix 1.21.0
svix-react 1.11.0
Platform
Description
The source maps need to added to the package. I currently have 157 warnings whenever I build my client because of the lack of source mapping. I've seen other people bring up this issue as well.
I know I can turn source mapping off, but that makes debugging in production more difficult.
Please update the package to contain the source maps so these warnings will go away.
The text was updated successfully, but these errors were encountered: