Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bundler module resolution in TSConfig #11373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mxdvl
Copy link
Member

@mxdvl mxdvl commented May 3, 2024

What does this change?

Why?

Enable the consumption of package.json#exports, which is what library authors declare as the public API and has replaced package.json#main

The "exports" provides a modern alternative to "main" allowing multiple entry points to be defined, conditional entry resolution support between environments, and preventing any other entry points besides those defined in "exports". This encapsulation allows module authors to clearly define the public interface for their package.

from https://nodejs.org/docs/latest-v20.x/api/packages.html#package-entry-points

Known issues

This introduces some peer dependencies mismatch, will be be addressed in a follow-up:

$ pnpm i --resolution-only

dotcom-rendering
├─┬ @guardian/braze-components 19.0.0
│ ├── ✕ unmet peer @guardian/source-react-components@^22.1.0: found 23.0.1
│ ├── ✕ unmet peer @guardian/source-react-components-development-kitchen@^19.0.0: found 20.0.1
│ └── ✕ unmet peer react@"17.0.2 || 18.2.0": found 18.3.1
├─┬ @guardian/eslint-plugin-source-react-components 24.0.0
│ └── ✕ unmet peer @guardian/source-react-components@^22.0.1: found 23.0.1
└── …

enable the consumption of package.json#exports,
which is what library authors declare as the public
API and has replaced package.json#main;

Update related depedencies accordingly

Read more: https://www.typescriptlang.org/tsconfig/#moduleResolution

Co-Authored-By: Alex Sanders <alex@sndrs.dev>
@mxdvl mxdvl requested review from a team as code owners May 3, 2024 12:19
Copy link

github-actions bot commented May 3, 2024

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Copy link

github-actions bot commented May 3, 2024

Size Change: +885 B (0%)

Total Size: 785 kB

Filename Size Change
dotcom-rendering/dist/1454.client.web.********************.js 0 B -3.48 kB (removed) 🏆
dotcom-rendering/dist/1768.client.web.********************.js 0 B -3.85 kB (removed) 🏆
dotcom-rendering/dist/2290.client.web.********************.js 0 B -3.85 kB (removed) 🏆
dotcom-rendering/dist/2300.client.web.********************.js 0 B -3.59 kB (removed) 🏆
dotcom-rendering/dist/2671.client.web.********************.js 0 B -2.81 kB (removed) 🏆
dotcom-rendering/dist/2877.client.web.********************.js 0 B -5.9 kB (removed) 🏆
dotcom-rendering/dist/3011.client.web.********************.js 0 B -2.82 kB (removed) 🏆
dotcom-rendering/dist/3286.client.web.********************.js 0 B -3.59 kB (removed) 🏆
dotcom-rendering/dist/3829.client.web.********************.js 0 B -3.61 kB (removed) 🏆
dotcom-rendering/dist/4114.client.web.********************.js 0 B -2.93 kB (removed) 🏆
dotcom-rendering/dist/4239.client.web.********************.js 0 B -3.42 kB (removed) 🏆
dotcom-rendering/dist/4379.client.web.********************.js 0 B -2.91 kB (removed) 🏆
dotcom-rendering/dist/4952.client.web.********************.js 0 B -2.66 kB (removed) 🏆
dotcom-rendering/dist/5010.client.web.********************.js 0 B -4.46 kB (removed) 🏆
dotcom-rendering/dist/5096.client.web.********************.js 0 B -17.8 kB (removed) 🏆
dotcom-rendering/dist/5481.client.web.********************.js 0 B -6.41 kB (removed) 🏆
dotcom-rendering/dist/5531.client.web.********************.js 0 B -3.13 kB (removed) 🏆
dotcom-rendering/dist/558.client.web.********************.js 0 B -3.06 kB (removed) 🏆
dotcom-rendering/dist/5725.client.web.********************.js 0 B -2.94 kB (removed) 🏆
dotcom-rendering/dist/5875.client.web.********************.js 0 B -958 B (removed) 🏆
dotcom-rendering/dist/6433.client.web.********************.js 0 B -2.41 kB (removed) 🏆
dotcom-rendering/dist/7142.client.web.********************.js 0 B -3.87 kB (removed) 🏆
dotcom-rendering/dist/7505.client.web.********************.js 0 B -3.8 kB (removed) 🏆
dotcom-rendering/dist/7779.client.web.********************.js 0 B -2.66 kB (removed) 🏆
dotcom-rendering/dist/8491.client.web.********************.js 0 B -8.23 kB (removed) 🏆
dotcom-rendering/dist/8529.client.web.********************.js 0 B -2.98 kB (removed) 🏆
dotcom-rendering/dist/9335.client.web.********************.js 0 B -4.64 kB (removed) 🏆
dotcom-rendering/dist/9880.client.web.********************.js 0 B -4.77 kB (removed) 🏆
dotcom-rendering/dist/9988.client.web.********************.js 0 B -3.33 kB (removed) 🏆
dotcom-rendering/dist/index.client.web.********************.js 46.6 kB -521 B (-1%)
dotcom-rendering/dist/1611.client.web.********************.js 8.23 kB +8.23 kB (new file) 🆕
dotcom-rendering/dist/2085.client.web.********************.js 2.66 kB +2.66 kB (new file) 🆕
dotcom-rendering/dist/2386.client.web.********************.js 3.06 kB +3.06 kB (new file) 🆕
dotcom-rendering/dist/2956.client.web.********************.js 3.86 kB +3.86 kB (new file) 🆕
dotcom-rendering/dist/3062.client.web.********************.js 2.41 kB +2.41 kB (new file) 🆕
dotcom-rendering/dist/3708.client.web.********************.js 2.94 kB +2.94 kB (new file) 🆕
dotcom-rendering/dist/3873.client.web.********************.js 3.85 kB +3.85 kB (new file) 🆕
dotcom-rendering/dist/482.client.web.********************.js 3.46 kB +3.46 kB (new file) 🆕
dotcom-rendering/dist/5307.client.web.********************.js 3.58 kB +3.58 kB (new file) 🆕
dotcom-rendering/dist/5607.client.web.********************.js 2.66 kB +2.66 kB (new file) 🆕
dotcom-rendering/dist/5684.client.web.********************.js 2.82 kB +2.82 kB (new file) 🆕
dotcom-rendering/dist/5735.client.web.********************.js 2.81 kB +2.81 kB (new file) 🆕
dotcom-rendering/dist/5758.client.web.********************.js 3.32 kB +3.32 kB (new file) 🆕
dotcom-rendering/dist/5766.client.web.********************.js 4.43 kB +4.43 kB (new file) 🆕
dotcom-rendering/dist/6450.client.web.********************.js 2.9 kB +2.9 kB (new file) 🆕
dotcom-rendering/dist/6829.client.web.********************.js 3.13 kB +3.13 kB (new file) 🆕
dotcom-rendering/dist/6895.client.web.********************.js 3.59 kB +3.59 kB (new file) 🆕
dotcom-rendering/dist/6911.client.web.********************.js 4.41 kB +4.41 kB (new file) 🆕
dotcom-rendering/dist/7162.client.web.********************.js 3.85 kB +3.85 kB (new file) 🆕
dotcom-rendering/dist/7342.client.web.********************.js 2.93 kB +2.93 kB (new file) 🆕
dotcom-rendering/dist/7412.client.web.********************.js 17.8 kB +17.8 kB (new file) 🆕
dotcom-rendering/dist/7671.client.web.********************.js 3.39 kB +3.39 kB (new file) 🆕
dotcom-rendering/dist/7831.client.web.********************.js 4.77 kB +4.77 kB (new file) 🆕
dotcom-rendering/dist/8093.client.web.********************.js 1.89 kB +1.89 kB (new file) 🆕
dotcom-rendering/dist/8153.client.web.********************.js 2.98 kB +2.98 kB (new file) 🆕
dotcom-rendering/dist/8269.client.web.********************.js 5.87 kB +5.87 kB (new file) 🆕
dotcom-rendering/dist/8589.client.web.********************.js 4.63 kB +4.63 kB (new file) 🆕
dotcom-rendering/dist/8934.client.web.********************.js 3.57 kB +3.57 kB (new file) 🆕
dotcom-rendering/dist/93.client.web.********************.js 6.41 kB +6.41 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
dotcom-rendering/dist/1093.client.web.********************.js 3.66 kB -2 B (0%)
dotcom-rendering/dist/1225.client.web.********************.js 781 B 0 B
dotcom-rendering/dist/1299.client.web.********************.js 926 B 0 B
dotcom-rendering/dist/1398.client.web.********************.js 4.83 kB +4 B (0%)
dotcom-rendering/dist/2342.client.web.********************.js 1 kB 0 B
dotcom-rendering/dist/2379.client.web.********************.js 5.42 kB 0 B
dotcom-rendering/dist/2471.client.web.********************.js 715 B 0 B
dotcom-rendering/dist/2499.client.web.********************.js 531 B 0 B
dotcom-rendering/dist/2778.client.web.********************.js 853 B 0 B
dotcom-rendering/dist/3000.client.web.********************.js 887 B 0 B
dotcom-rendering/dist/3055.client.web.********************.js 2.01 kB 0 B
dotcom-rendering/dist/3114.client.web.********************.js 651 B 0 B
dotcom-rendering/dist/3118.client.web.********************.js 496 B 0 B
dotcom-rendering/dist/3255.client.web.********************.js 803 B 0 B
dotcom-rendering/dist/3336.client.web.********************.js 781 B 0 B
dotcom-rendering/dist/3494.client.web.********************.js 823 B 0 B
dotcom-rendering/dist/3584.client.web.********************.js 10.3 kB +2 B (0%)
dotcom-rendering/dist/3642.client.web.********************.js 787 B 0 B
dotcom-rendering/dist/3696.client.web.********************.js 5.76 kB +1 B (0%)
dotcom-rendering/dist/3772.client.web.********************.js 440 B 0 B
dotcom-rendering/dist/3922.client.web.********************.js 724 B 0 B
dotcom-rendering/dist/3932.client.web.********************.js 789 B 0 B
dotcom-rendering/dist/4123.client.web.********************.js 8.79 kB 0 B
dotcom-rendering/dist/417.client.web.********************.js 157 B 0 B
dotcom-rendering/dist/424.client.web.********************.js 749 B 0 B
dotcom-rendering/dist/4442.client.web.********************.js 823 B 0 B
dotcom-rendering/dist/4673.client.web.********************.js 723 B 0 B
dotcom-rendering/dist/4811.client.web.********************.js 994 B 0 B
dotcom-rendering/dist/5044.client.web.********************.js 802 B 0 B
dotcom-rendering/dist/5084.client.web.********************.js 751 B 0 B
dotcom-rendering/dist/5191.client.web.********************.js 22.4 kB +4 B (0%)
dotcom-rendering/dist/5308.client.web.********************.js 2.7 kB 0 B
dotcom-rendering/dist/5436.client.web.********************.js 2.01 kB 0 B
dotcom-rendering/dist/5490.client.web.********************.js 42.9 kB 0 B
dotcom-rendering/dist/565.client.web.********************.js 669 B 0 B
dotcom-rendering/dist/5817.client.web.********************.js 915 B 0 B
dotcom-rendering/dist/6057.client.web.********************.js 1.54 kB -1 B (0%)
dotcom-rendering/dist/6093.client.web.********************.js 749 B 0 B
dotcom-rendering/dist/6167.client.web.********************.js 640 B 0 B
dotcom-rendering/dist/6198.client.web.********************.js 618 B 0 B
dotcom-rendering/dist/625.client.web.********************.js 12.3 kB +4 B (0%)
dotcom-rendering/dist/6506.client.web.********************.js 5.87 kB +2 B (0%)
dotcom-rendering/dist/6640.client.web.********************.js 906 B 0 B
dotcom-rendering/dist/7116.client.web.********************.js 23 kB 0 B
dotcom-rendering/dist/7196.client.web.********************.js 889 B 0 B
dotcom-rendering/dist/72.client.web.********************.js 961 B 0 B
dotcom-rendering/dist/7284.client.web.********************.js 5.86 kB 0 B
dotcom-rendering/dist/7387.client.web.********************.js 955 B 0 B
dotcom-rendering/dist/7713.client.web.********************.js 3.29 kB +3 B (0%)
dotcom-rendering/dist/7723.client.web.********************.js 921 B 0 B
dotcom-rendering/dist/7808.client.web.********************.js 2.95 kB 0 B
dotcom-rendering/dist/8134.client.web.********************.js 595 B 0 B
dotcom-rendering/dist/8179.client.web.********************.js 825 B 0 B
dotcom-rendering/dist/8565.client.web.********************.js 642 B 0 B
dotcom-rendering/dist/8791.client.web.********************.js 1 kB 0 B
dotcom-rendering/dist/8824.client.web.********************.js 8.65 kB +5 B (0%)
dotcom-rendering/dist/889.client.web.********************.js 854 B 0 B
dotcom-rendering/dist/8907.client.web.********************.js 789 B 0 B
dotcom-rendering/dist/8943.client.web.********************.js 3.34 kB +2 B (0%)
dotcom-rendering/dist/9060.client.web.********************.js 877 B 0 B
dotcom-rendering/dist/9225.client.web.********************.js 582 B 0 B
dotcom-rendering/dist/9325.client.web.********************.js 3.79 kB +2 B (0%)
dotcom-rendering/dist/9390.client.web.********************.js 3.61 kB 0 B
dotcom-rendering/dist/9396.client.web.********************.js 680 B 0 B
dotcom-rendering/dist/9397.client.web.********************.js 3.05 kB 0 B
dotcom-rendering/dist/9430.client.web.********************.js 508 B 0 B
dotcom-rendering/dist/9657.client.web.********************.js 1.84 kB 0 B
dotcom-rendering/dist/9741.client.web.********************.js 527 B 0 B
dotcom-rendering/dist/9789.client.web.********************.js 922 B 0 B
dotcom-rendering/dist/AdBlockAsk-importable.client.web.********************.js 2.81 kB 0 B
dotcom-rendering/dist/AdPortals-importable.client.web.********************.js 3.77 kB +1 B (0%)
dotcom-rendering/dist/AlreadyVisited-importable.client.web.********************.js 424 B 0 B
dotcom-rendering/dist/AppsEpic-importable.client.web.********************.js 3.53 kB +2 B (0%)
dotcom-rendering/dist/AppsFooter-importable.client.web.********************.js 3.62 kB +1 B (0%)
dotcom-rendering/dist/AppsLightboxImage-importable.client.web.********************.js 3.02 kB 0 B
dotcom-rendering/dist/AppsLightboxImageStore-importable.client.web.********************.js 2.46 kB 0 B
dotcom-rendering/dist/AudioAtomWrapper-importable.client.web.********************.js 3.58 kB +1 B (0%)
dotcom-rendering/dist/AustralianTerritorySwitcher-importable.client.web.********************.js 2.01 kB -1 B (0%)
dotcom-rendering/dist/Branding-importable.client.web.********************.js 2.8 kB -2 B (0%)
dotcom-rendering/dist/braze-web-sdk-core.client.web.********************.js 36.9 kB 0 B
dotcom-rendering/dist/BrazeMessaging-importable.client.web.********************.js 1.91 kB -1 B (0%)
dotcom-rendering/dist/CalloutBlockComponent-importable.client.web.********************.js 6.73 kB +6 B (0%)
dotcom-rendering/dist/CalloutEmbedBlockComponent-importable.client.web.********************.js 5.75 kB +12 B (0%)
dotcom-rendering/dist/CardCommentCount-importable.client.web.********************.js 4.82 kB +2 B (0%)
dotcom-rendering/dist/Carousel-importable.client.web.********************.js 6.76 kB 0 B
dotcom-rendering/dist/CarouselForNewsletters-importable.client.web.********************.js 5.65 kB 0 B
dotcom-rendering/dist/ChartAtom-importable.client.web.********************.js 538 B 0 B
dotcom-rendering/dist/CommentCount-importable.client.web.********************.js 3.26 kB 0 B
dotcom-rendering/dist/DiscussionApps-importable.client.web.********************.js 1.81 kB 0 B
dotcom-rendering/dist/DiscussionMeta-importable.client.web.********************.js 3.08 kB -2 B (0%)
dotcom-rendering/dist/DiscussionWeb-importable.client.web.********************.js 1.6 kB 0 B
dotcom-rendering/dist/DocumentBlockComponent-importable.client.web.********************.js 3.56 kB +3 B (0%)
dotcom-rendering/dist/EmbedBlockComponent-importable.client.web.********************.js 4.11 kB +3 B (0%)
dotcom-rendering/dist/EnhancePinnedPost-importable.client.web.********************.js 2.01 kB 0 B
dotcom-rendering/dist/FetchOnwardsData-importable.client.web.********************.js 2.42 kB 0 B
dotcom-rendering/dist/FilterKeyEventsToggle-importable.client.web.********************.js 3.79 kB +2 B (0%)
dotcom-rendering/dist/FocusStyles-importable.client.web.********************.js 613 B 0 B
dotcom-rendering/dist/FollowWrapper-importable.client.web.********************.js 842 B -1 B (0%)
dotcom-rendering/dist/FooterLabel-importable.client.web.********************.js 344 B 0 B
dotcom-rendering/dist/frameworks.client.web.********************.js 20.7 kB 0 B
dotcom-rendering/dist/GetCricketScoreboard-importable.client.web.********************.js 4.35 kB 0 B
dotcom-rendering/dist/GetMatchNav-importable.client.web.********************.js 10.9 kB -3 B (0%)
dotcom-rendering/dist/GetMatchStats-importable.client.web.********************.js 2.19 kB 0 B
dotcom-rendering/dist/GetMatchTabs-importable.client.web.********************.js 2.64 kB +1 B (0%)
dotcom-rendering/dist/guardian-braze-components-banner.client.web.********************.js 15.1 kB +4 B (0%)
dotcom-rendering/dist/guardian-braze-components-end-of-article.client.web.********************.js 9.62 kB 0 B
dotcom-rendering/dist/GuideAtomWrapper-importable.client.web.********************.js 780 B 0 B
dotcom-rendering/dist/HeaderTopBar-importable.client.web.********************.js 12.3 kB -1 B (0%)
dotcom-rendering/dist/InstagramBlockComponent-importable.client.web.********************.js 3.65 kB +5 B (0%)
dotcom-rendering/dist/InteractiveAtomMessenger-importable.client.web.********************.js 855 B 0 B
dotcom-rendering/dist/InteractiveBlockComponent-importable.client.web.********************.js 6.14 kB 0 B
dotcom-rendering/dist/InteractiveContentsBlockComponent-importable.client.web.********************.js 4.66 kB +1 B (0%)
dotcom-rendering/dist/InteractiveSupportButton-importable.client.web.********************.js 3.48 kB +2 B (0%)
dotcom-rendering/dist/KeyEventsCarousel-importable.client.web.********************.js 4.6 kB +8 B (0%)
dotcom-rendering/dist/KnowledgeQuizAtom-importable.client.web.********************.js 3.49 kB -1 B (0%)
dotcom-rendering/dist/LatestLinks-importable.client.web.********************.js 2.76 kB +4 B (0%)
dotcom-rendering/dist/LightboxHash-importable.client.web.********************.js 435 B 0 B
dotcom-rendering/dist/LightboxLayout-importable.client.web.********************.js 6.43 kB +1 B (0%)
dotcom-rendering/dist/LiveBlogEpic-importable.client.web.********************.js 3.66 kB -6 B (0%)
dotcom-rendering/dist/Liveness-importable.client.web.********************.js 4.93 kB +3 B (0%)
dotcom-rendering/dist/ManyNewsletterSignUp-importable.client.web.********************.js 6.63 kB +1 B (0%)
dotcom-rendering/dist/MapEmbedBlockComponent-importable.client.web.********************.js 5.61 kB +2 B (0%)
dotcom-rendering/dist/Metrics-importable.client.web.********************.js 2.65 kB 0 B
dotcom-rendering/dist/MostViewedFooter-importable.client.web.********************.js 5.75 kB -2 B (0%)
dotcom-rendering/dist/MostViewedFooterData-importable.client.web.********************.js 8.32 kB 0 B
dotcom-rendering/dist/MostViewedRightWrapper-importable.client.web.********************.js 4.01 kB +1 B (0%)
dotcom-rendering/dist/OnwardsUpper-importable.client.web.********************.js 4.05 kB 0 B
dotcom-rendering/dist/PersonalityQuizAtom-importable.client.web.********************.js 3.62 kB -1 B (0%)
dotcom-rendering/dist/ProfileAtom-importable.client.web.********************.js 542 B 0 B
dotcom-rendering/dist/ProfileAtomWrapper-importable.client.web.********************.js 799 B 0 B
dotcom-rendering/dist/PulsingDot-importable.client.web.********************.js 752 B 0 B
dotcom-rendering/dist/QandaAtom-importable.client.web.********************.js 538 B 0 B
dotcom-rendering/dist/ReaderRevenueDev-importable.client.web.********************.js 471 B 0 B
dotcom-rendering/dist/readerRevenueDevUtils.client.web.********************.js 1.89 kB 0 B
dotcom-rendering/dist/ReaderRevenueLinks-importable.client.web.********************.js 4.65 kB +1 B (0%)
dotcom-rendering/dist/RelativeTime-importable.client.web.********************.js 1.99 kB 0 B
dotcom-rendering/dist/RichLinkComponent-importable.client.web.********************.js 6.75 kB +1 B (0%)
dotcom-rendering/dist/SecureSignup-importable.client.web.********************.js 3.63 kB +2 B (0%)
dotcom-rendering/dist/SendAMessage-importable.client.web.********************.js 4.41 kB +1 B (0%)
dotcom-rendering/dist/SendTargetingParams-importable.client.web.********************.js 2.14 kB 0 B
dotcom-rendering/dist/sentry.client.web.********************.js 768 B 0 B
dotcom-rendering/dist/SetABTests-importable.client.web.********************.js 3.76 kB 0 B
dotcom-rendering/dist/SetAdTargeting-importable.client.web.********************.js 483 B 0 B
dotcom-rendering/dist/ShareButton-importable.client.web.********************.js 1.52 kB -4 B (0%)
dotcom-rendering/dist/shimport.client.web.********************.js 2.79 kB 0 B
dotcom-rendering/dist/ShowHideContainers-importable.client.web.********************.js 648 B 0 B
dotcom-rendering/dist/ShowMore-importable.client.web.********************.js 6.97 kB -7 B (0%)
dotcom-rendering/dist/SignInGateCustomizableText.client.web.********************.js 954 B -2 B (0%)
dotcom-rendering/dist/SignInGateMain.client.web.********************.js 1.19 kB -2 B (0%)
dotcom-rendering/dist/SignInGateMainCheckoutComplete.client.web.********************.js 2.69 kB -2 B (0%)
dotcom-rendering/dist/SignInGateSelector-importable.client.web.********************.js 3.73 kB 0 B
dotcom-rendering/dist/SlotBodyEnd-importable.client.web.********************.js 4.16 kB +6 B (0%)
dotcom-rendering/dist/SpotifyBlockComponent-importable.client.web.********************.js 5.45 kB +3 B (0%)
dotcom-rendering/dist/StickyBottomBanner-importable.client.web.********************.js 3.86 kB +4 B (0%)
dotcom-rendering/dist/SubNav-importable.client.web.********************.js 2.84 kB 0 B
dotcom-rendering/dist/SupportTheG-importable.client.web.********************.js 4.77 kB -1 B (0%)
dotcom-rendering/dist/TableOfContents-importable.client.web.********************.js 3.19 kB +2 B (0%)
dotcom-rendering/dist/TimelineAtom-importable.client.web.********************.js 1.24 kB 0 B
dotcom-rendering/dist/TweetBlockComponent-importable.client.web.********************.js 1.01 kB 0 B
dotcom-rendering/dist/UnsafeEmbedBlockComponent-importable.client.web.********************.js 3.66 kB +3 B (0%)
dotcom-rendering/dist/VideoFacebookBlockComponent-importable.client.web.********************.js 5.62 kB +1 B (0%)
dotcom-rendering/dist/VineBlockComponent-importable.client.web.********************.js 3.5 kB +5 B (0%)
dotcom-rendering/dist/WeatherWrapper-importable.client.web.********************.js 5.44 kB -2 B (0%)
dotcom-rendering/dist/YoutubeBlockComponent-importable.client.web.********************.js 4.65 kB +3 B (0%)

compressed-size-action

@mxdvl mxdvl changed the title feat(tsconfig): use bundler module resolution Use bundler module resolution in TSConfig May 3, 2024
@@ -0,0 +1,58 @@
diff --git a/dist/shared/src/types/props/banner.d.ts b/dist/shared/src/types/props/banner.d.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for my own understanding/curiosity: what is this file and why/how does it get generated?

Copy link
Member Author

@mxdvl mxdvl May 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It applies a apply a pnpm patch to the dependency, which transforms it to using JSX type imports, so the tsc step is successful.

This will not be necessary if the upstream package is fixed in guardian/support-dotcom-components#1119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants