From 3972f6a3c9fd5acbc5142a958983b91b1e5dd055 Mon Sep 17 00:00:00 2001 From: Colisan Loveteit Date: Wed, 6 Apr 2022 19:22:47 +0200 Subject: [PATCH 1/2] Added HMR module typing for typescript doc Previously added in commit e34f707, and still relevant/needed today --- src/languages/typescript.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/languages/typescript.md b/src/languages/typescript.md index 6472a820d..87242ffdc 100644 --- a/src/languages/typescript.md +++ b/src/languages/typescript.md @@ -156,3 +156,7 @@ The `@parcel/validator-typescript` plugin is an experimental way to type check w **Warning**: Parcel validator plugins are experimental and may be unstable. {% endwarning %} + +### Module API types + +To interact with Parcel's Module API (e.g. when setting up [Hot Module Replacement](https://parceljs.org/hmr.html)), make sure to install the `@types/parcel-env` package. From ea2f6bc0ced31db3d01316acc940c755921d7426 Mon Sep 17 00:00:00 2001 From: Colisan Loveteit Date: Wed, 6 Apr 2022 21:34:22 +0200 Subject: [PATCH 2/2] Updated old broken URL Copy/pasted it too quickly from the old commit --- src/languages/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/typescript.md b/src/languages/typescript.md index 87242ffdc..f47ca62ea 100644 --- a/src/languages/typescript.md +++ b/src/languages/typescript.md @@ -159,4 +159,4 @@ The `@parcel/validator-typescript` plugin is an experimental way to type check w ### Module API types -To interact with Parcel's Module API (e.g. when setting up [Hot Module Replacement](https://parceljs.org/hmr.html)), make sure to install the `@types/parcel-env` package. +To interact with Parcel's Module API (e.g. when setting up [Hot Module Replacement](https://parceljs.org/features/development/#hot-reloading)), make sure to install the `@types/parcel-env` package.