From fe60f5113ec39f4fef86ce7770f9854bfd25abea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Fri, 19 Jul 2024 17:14:35 +0200 Subject: [PATCH] Fix import syntax to work with Deno This was tested with the 0.10.0 version of the package from NPM, but with index.json instead of data.json. The previous syntax didn't work because these aren't named exports. --- packages/web-features/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/web-features/README.md b/packages/web-features/README.md index 2cc8a25ee54..696e5bba5eb 100644 --- a/packages/web-features/README.md +++ b/packages/web-features/README.md @@ -15,11 +15,8 @@ import { features, groups, snapshots } from "web-features"; Or, without Node.js: ```js -import { - features, - groups, - snapshots, -} from "web-features/data.json" with { type: "json" }; +import data from "web-features/data.json" with { type: "json" }; +const { features, groups, snapshots } = data; ``` ## Rendering Baseline statuses with `web-features`