From 47ff4748bd03aef9583b8d7bf9d503a8f3db599d Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Sun, 13 Oct 2024 07:34:38 +0300 Subject: [PATCH] Remove duplicate in import-json.md (#14521) --- docs/guides/runtime/import-json.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/guides/runtime/import-json.md b/docs/guides/runtime/import-json.md index 57e3a1b580027b..5791e32ae3f61a 100644 --- a/docs/guides/runtime/import-json.md +++ b/docs/guides/runtime/import-json.md @@ -27,16 +27,6 @@ data.version; // => "1.0.0" data.author.name; // => "John Dough" ``` -Bun also supports [Import Attributes](https://github.com/tc39/proposal-import-attributes/) and [JSON modules](https://github.com/tc39/proposal-json-modules) syntax. - -```ts -import data from "./package.json" with { type: "json" }; - -data.name; // => "bun" -data.version; // => "1.0.0" -data.author.name; // => "John Dough" -``` - --- Bun also supports [Import Attributes](https://github.com/tc39/proposal-import-attributes/) and [JSON modules](https://github.com/tc39/proposal-json-modules) syntax.