Skip to content

Commit

Permalink
Fixes playground openapi3 importer (#5971)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Radek <[email protected]>
  • Loading branch information
chrisradek and Christopher Radek authored Feb 12, 2025
1 parent 18b8b33 commit bfcd027
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"typescript": "~5.7.3",
"typescript-eslint": "^8.21.0",
"vitest": "^3.0.5",
"vite-plugin-node-polyfills": "^0.23.0",
"yaml": "~2.7.0"
},
"syncpack": {
Expand Down
16 changes: 15 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { defineConfig } from "astro/config";
import { resolve } from "path";
import rehypeMermaid from "rehype-mermaid";
import remarkHeadingID from "remark-heading-id";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import current from "./src/content/current-sidebar";

const base = process.env.TYPESPEC_WEBSITE_BASE_PATH ?? "/";
Expand Down Expand Up @@ -70,4 +71,14 @@ export default defineConfig({
langs: [TypeSpecLang],
},
},
vite: {
plugins: [
nodePolyfills({
include: ["buffer"],
globals: {
process: "dev",
},
}),
],
},
});
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"astro-expressive-code": "^0.40.1",
"rehype-mermaid": "^3.0.0",
"remark-heading-id": "^1.0.1",
"rimraf": "~6.0.1"
"rimraf": "~6.0.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}

0 comments on commit bfcd027

Please sign in to comment.