{"id":15801275,"url":"https://github.com/char0n/swagger-ui-parcel","last_synced_at":"2026-02-16T13:07:06.909Z","repository":{"id":136894066,"uuid":"499127960","full_name":"char0n/swagger-ui-parcel","owner":"char0n","description":"POC of integrating SwaggerUI with Parcel.js","archived":false,"fork":false,"pushed_at":"2024-01-08T14:42:24.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"swagger-ui","last_synced_at":"2025-10-08T20:12:15.300Z","etag":null,"topics":["parcel","parceljs","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/char0n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-06-02T12:33:11.000Z","updated_at":"2023-08-22T08:39:12.000Z","dependencies_parsed_at":"2024-02-01T16:28:00.252Z","dependency_job_id":"be2fa21a-027a-4a9e-b3d3-f2acab04c9fd","html_url":"https://github.com/char0n/swagger-ui-parcel","commit_stats":null,"previous_names":["char0n/swagger-ui-parcel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/char0n/swagger-ui-parcel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/char0n%2Fswagger-ui-parcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/char0n%2Fswagger-ui-parcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/char0n%2Fswagger-ui-parcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/char0n%2Fswagger-ui-parcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/char0n","download_url":"https://codeload.github.com/char0n/swagger-ui-parcel/tar.gz/refs/heads/swagger-ui","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/char0n%2Fswagger-ui-parcel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["parcel","parceljs","swagger-ui"],"created_at":"2024-10-05T01:21:36.191Z","updated_at":"2026-02-16T13:07:06.881Z","avatar_url":"https://github.com/char0n.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Parcel to build SwaggerUI\n\n## JavaScript\n\nParcel.js module resolution is not compliant with the spec.\n\n```js\nimport * as e from 'lodash/memoize.js';\n```\n\nParcel.js resolves to:\n\n```\n[Function: memoize] { Cache: [Function: MapCache] }\n```\n\nThe rest of the bundlers and Node.js resolves to:\n\n```\n[Module: null prototype] {\n  default: [Function: memoize] { Cache: [Function: MapCache] }\n}\n```\n\nIt seems that Parcel.js resolves default export to the symbol the default export points to\ninstead of resolving to Module Object.\n\nRelated issues:\n- https://github.com/parcel-bundler/parcel/issues/5459\n- https://github.com/thangngoc89/bs-ant-design/issues/21\n\nTo resolve the issue with the latest version of `swagger-ui@4.11.1` \nfollowing Parcel.js alias needs to provided in `package.json`:\n\n```json\n{\n  \"alias\": {\n    \"./node_modules/swagger-ui/dist/swagger-ui-es-bundle-core.js\": \"./node_modules/swagger-ui/dist/swagger-ui.js\"\n  }\n}\n```\n\nUsing this setup we avoid using modern ESM distribution fragments and instead\nfallback to CommonJS which consistently works with Parcel.js.\n\n## Support for package.json `exports` field\n\nParcel.js doesn't support package.json [exports](https://nodejs.org/api/packages.html#package-entry-points) field [by default](https://parceljs.org/blog/v2-9-0/#new-resolver). It needs to be enabled\nexplicitly. This can be done by adding the following to your project root package.json:\n\n```json\n{\n  \"@parcel/resolver-default\": {\n    \"packageExports\": true\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchar0n%2Fswagger-ui-parcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchar0n%2Fswagger-ui-parcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchar0n%2Fswagger-ui-parcel/lists"}