From a4c545c947b24fac008cbf6de492b24b6c4f6d46 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Mon, 27 Jan 2025 17:10:39 -0500 Subject: [PATCH] clarify expecations around ESM compatiblity for import maps --- src/pages/docs/introduction/web-standards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/docs/introduction/web-standards.md b/src/pages/docs/introduction/web-standards.md index 970735f4..08156f76 100644 --- a/src/pages/docs/introduction/web-standards.md +++ b/src/pages/docs/introduction/web-standards.md @@ -104,7 +104,7 @@ export async function handler(request) { ## Import Maps -During local development, Greenwood serves all resources to your browser unbundled right off disk using efficient [E-Tag caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag). [**Import Maps**](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) allow bare specifiers, typically found when referencing packages from npm, to work natively in the browser. When Greenwood sees a package in the **dependency** field of your _package.json_, Greenwood will walk all your dependencies and build up an import map to be injected into the `` of your HTML automatically, in conjunction with Greenwood's dev server. +During local development, Greenwood serves all resources to your browser unbundled right off disk using efficient [E-Tag caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag). [**Import Maps**](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) allow bare specifiers for ESM compatible packages installed from npm to work natively in the browser. When Greenwood sees a package in the **dependency** field of your _package.json_, Greenwood will walk all your dependencies and build up an import map to be injected into the `` of your HTML automatically, in conjunction with Greenwood's dev server. Below is a sample of an import map that would be generated after having installed the **lit** package: