mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #69] Added inlineSources: true to tsconfig.json #86
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/atulmy/gql-query-builder/pull/69
State: closed
Merged: Yes
Hey there 👋
TLDR
I'm hoping to turn on
inlineSourcesin your tsconfig.json file so that webpack stops complaining.Explanation
I'm working on the gadget-inc/js-clients packages and I'm trying to get rid of webpack source map warnings from being emitted when someone uses our react client in a create-react-app v5 project.
I was able to fix the warnings with this (soon to be merged) PR, but our clients use your package under the hood, and it looks like your package also emits warnings.
I figured out that webpack is complaining because your source maps are referencing files in your
srcdirectory but you don't include yoursrcdirectory when you publish to npm.To fix this, you could do one of the following:
srcdirectory when publishing to npminlineSourcesin your tsconfig.jsonI think the
inlineSourcesoption is the easiest one... but it's up to you 😄