Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: Unable to load files in Node (#94)
Browse files Browse the repository at this point in the history
* Update vite.config.ts to include node native modules

* docs(changeset): fix: existsSync is not a function

---------

Co-authored-by: Hans Pagel <[email protected]>
  • Loading branch information
x-delfino and hanspagel authored May 23, 2024
1 parent 1204af2 commit 03569c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-buttons-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scalar/openapi-parser": patch
---

fix: existsSync is not a function
3 changes: 3 additions & 0 deletions packages/openapi-parser/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default defineConfig({
name: '@scalar/openapi-parser',
formats: ['es'],
},
rollupOptions: {
external: ['node:fs', 'node:path'],
},
},
test: {
coverage: {
Expand Down

0 comments on commit 03569c8

Please sign in to comment.