diff --git a/docs/scripts/index-docs.js b/docs/scripts/index-docs.js index 63657b17..7e78293c 100644 --- a/docs/scripts/index-docs.js +++ b/docs/scripts/index-docs.js @@ -1,6 +1,6 @@ // @ts-check -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import githubSlugger from "github-slugger"; const { slug } = githubSlugger; diff --git a/docs/svelte.config.js b/docs/svelte.config.js index d592e06f..63d11b5d 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; import { mdsvex } from "mdsvex"; import { parse, walk } from "svelte/compiler"; import slug from "remark-slug"; @@ -6,7 +6,7 @@ import visit from "unist-util-visit"; import { format } from "prettier"; import pkg from "../package.json" assert { type: "json" }; import component_api from "./src/COMPONENT_API.json" assert { type: "json" }; -import fs from "fs"; +import fs from "node:fs"; import Prism from "prismjs"; import "prism-svelte";