Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: alias @faker-js/faker to false in webpack to reduce bundle size #1213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sserrata wants to merge 3 commits into main from fix/remove-faker-from-browser-bundle

Conversation

@sserrata
Copy link
Member

@sserrata sserrata commented Aug 7, 2025

The Postman code generator dependency includes @faker-js/faker, which isn't needed in the browser but adds significant bundle weight. This change uses a webpack alias and IgnorePlugin to exclude it from the client bundle.

Description

Addresses #1205

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

sserrata added 2 commits August 7, 2025 10:17
The Postman code generator dependency includes @faker-js/faker, which isn't needed in the browser but adds significant bundle weight. This change uses a webpack alias and IgnorePlugin to exclude it from the client bundle.
Copy link

github-actions bot commented Aug 7, 2025
edited
Loading

Size Change: 0 B

Total Size: 2.14 MB

i️ View Unchanged
Filename Size
demo/.docusaurus/codeTranslations.json 2 B
demo/.docusaurus/docusaurus.config.mjs 14.6 kB
demo/.docusaurus/globalData.json 55.6 kB
demo/.docusaurus/i18n.json 267 B
demo/.docusaurus/registry.js 80.7 kB
demo/.docusaurus/routes.js 76.4 kB
demo/.docusaurus/routesChunkNames.json 31.5 kB
demo/.docusaurus/site-metadata.json 1.51 kB
demo/build/assets/css/styles.********.css 145 kB
demo/build/assets/js/main.********.js 713 kB
demo/build/assets/js/runtime~main.********.js 19.9 kB
demo/build/index.html 84.4 kB
demo/build/petstore/add-pet/index.html 27.8 kB
demo/build/petstore/create-user/index.html 22.5 kB
demo/build/petstore/create-users-with-array-input/index.html 22.6 kB
demo/build/petstore/create-users-with-list-input/index.html 22.6 kB
demo/build/petstore/delete-order/index.html 22.5 kB
demo/build/petstore/delete-pet/index.html 22.6 kB
demo/build/petstore/delete-user/index.html 22.8 kB
demo/build/petstore/find-pets-by-status/index.html 23.2 kB
demo/build/petstore/find-pets-by-tags/index.html 23.9 kB
demo/build/petstore/get-inventory/index.html 21.8 kB
demo/build/petstore/get-order-by-id/index.html 22.8 kB
demo/build/petstore/get-pet-by-id/index.html 23.3 kB
demo/build/petstore/get-user-by-name/index.html 22.9 kB
demo/build/petstore/login-user/index.html 23.4 kB
demo/build/petstore/logout-user/index.html 22.2 kB
demo/build/petstore/new-pet/index.html 22.7 kB
demo/build/petstore/pet/index.html 21 kB
demo/build/petstore/place-order/index.html 22 kB
demo/build/petstore/schemas/apiresponse/index.html 23.3 kB
demo/build/petstore/schemas/cat/index.html 37.1 kB
demo/build/petstore/schemas/category/index.html 24.3 kB
demo/build/petstore/schemas/dog/index.html 37.6 kB
demo/build/petstore/schemas/honeybee/index.html 37.6 kB
demo/build/petstore/schemas/id/index.html 21.4 kB
demo/build/petstore/schemas/order/index.html 25.5 kB
demo/build/petstore/schemas/pet/index.html 37.1 kB
demo/build/petstore/schemas/tag/index.html 22.7 kB
demo/build/petstore/schemas/user/index.html 45.3 kB
demo/build/petstore/store/index.html 20.2 kB
demo/build/petstore/subscribe-to-the-store-events/index.html 28.8 kB
demo/build/petstore/swagger-petstore-yaml/index.html 29 kB
demo/build/petstore/update-pet-with-form/index.html 22.7 kB
demo/build/petstore/update-pet/index.html 23.1 kB
demo/build/petstore/update-user/index.html 22.8 kB
demo/build/petstore/upload-file/index.html 22.6 kB
demo/build/petstore/user/index.html 20.7 kB

compressed-size-action

Copy link

github-actions bot commented Aug 7, 2025
edited
Loading

Visit the preview URL for this PR (updated for commit 4cef180):

https://docusaurus-openapi-36b86--pr1213-2evqe8he.web.app

(expires 2025年9月06日 15:30:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /