redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

fix: loadConfig function should work in browser

Open AlexVarchuk opened this issue 4 months ago • 2 comments

What/Why/How?

When using loadConfig function to get the config for the browser environment, we get an error: "path.extname is not a function"

Reference

Testing

Screenshots (optional)

image (16) Screenshot 2025-08-14 at 14 53 34

Check yourself

  • [ ] Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • [ ] All new/updated code is covered by tests
  • [ ] New package installed? - Tested in different environments (browser/node)

Security

  • [x] The security impact of the change has been considered
  • [x] Code follows company security practices and guidelines

AlexVarchuk avatar Aug 14 '25 12:08 AlexVarchuk

🦋 Changeset detected

Latest commit: 545c06f8aded99f4fb97eab7e79449bc92569cbe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Patch
@redocly/cli Patch
@redocly/respect-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Aug 14 '25 12:08 changeset-bot[bot]

Command Mean [s] Min [s] Max [s] Relative
redocly lint packages/core/src/benchmark/benches/rebilly.yaml 1.424 ± 0.024 1.381 1.459 1.00
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml 1.436 ± 0.035 1.390 1.498 1.01 ± 0.03

github-actions[bot] avatar Aug 14 '25 12:08 github-actions[bot]