chore(docs): upgrade deps

Modernize the docs set-up to use Vite 5 so that the exports map works.
This commit is contained in:
metonym 2023-12-16 14:06:46 -08:00
commit 42519690b7
4 changed files with 442 additions and 252 deletions

View file

@ -1,7 +1,9 @@
// @ts-check
const fs = require("fs");
const path = require("path");
const { slug } = require("github-slugger");
import fs from "fs";
import path from "path";
import githubSlugger from "github-slugger";
const { slug } = githubSlugger;
const COMPONENTS_PATH = "./src/pages/components";
const SEARCH_INDEX_PATH = "./src/SEARCH_INDEX.json";