Update tsconfig so that cmd+clicking takes you to source code, not d.ts file
#3308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Previously, if I was in a file like
templates/skeleton/app/root.tsxand I cmd+clicked on the function 'getShopifyAnalytics` (to go to its definition), I was taken to a d.ts file and not the actual source code in the Hydrogen package.Now, I'm taken to the actual source code (ie: `packages/hydrogen/src/analytics-manager/AnalyticsProvider.tsx in this case).
WHAT is this pull request doing?
Sets
declarationMap: truein this repo's tsconfig. Docs on declarationMap settingHOW to test your changes?
Before Fix (Reproduce the Issue):
npm install && npm run buildat the root(compiled declarations, no source code)
After Fix (Verify Solution):
packages/hydrogen/src/analytics-manager/AnalyticsProvider.tsx:440 (actual source
code)
Post-merge steps
N/A
Checklist