{"id":18679318,"url":"https://github.com/twhy/vite-joyid","last_synced_at":"2025-11-07T13:30:49.026Z","repository":{"id":242839455,"uuid":"810710892","full_name":"twhy/vite-joyid","owner":"twhy","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-05T08:13:45.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T21:42:35.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twhy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T08:09:16.000Z","updated_at":"2024-06-05T08:13:49.000Z","dependencies_parsed_at":"2024-06-05T09:37:46.263Z","dependency_job_id":"cf342d14-1669-4fc1-bb95-37337651b4c0","html_url":"https://github.com/twhy/vite-joyid","commit_stats":null,"previous_names":["twhy/vite-joyid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhy%2Fvite-joyid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhy%2Fvite-joyid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhy%2Fvite-joyid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhy%2Fvite-joyid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twhy","download_url":"https://codeload.github.com/twhy/vite-joyid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239531269,"owners_count":19654452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:43:04.661Z","updated_at":"2025-11-07T13:30:48.992Z","avatar_url":"https://github.com/twhy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite + JoyID\n\n## Trouble Shooting\n`Buffer is not defined`\n1. Install `@esbuild-plugins/node-globals-polyfill`\n2. In `vite.config.js`\n```ts\nimport { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'\n\nexport default defineConfig({\n    // ...other config settings\n    optimizeDeps: {\n        esbuildOptions: {\n            // Node.js global to browser globalThis\n            define: {\n                global: 'globalThis'\n            },\n            // Enable esbuild polyfill plugins\n            plugins: [\n                NodeGlobalsPolyfillPlugin({\n                    buffer: true\n                })\n            ]\n        }\n    }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhy%2Fvite-joyid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwhy%2Fvite-joyid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhy%2Fvite-joyid/lists"}