Conversation
|
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1772633752 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1772633752
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1772633752
# or
npm install @redocly/respect-core@0.0.0-snapshot.1772633752 |
Coverage Report
File CoverageNo changed files found. |
|
| "import": "./lib/index.js", | ||
| "types": "./lib/index.d.ts" | ||
| }, | ||
| "./runtime-expressions": { |
There was a problem hiding this comment.
I'd suggest propagating the exports to the root in the code instead of creating new entrypoints. This should be a safer approach in terms of maintenance.
There was a problem hiding this comment.
Unless it's for smaller bundle size. If this is the case, please update the PR's description.
There was a problem hiding this comment.
Yes, this is for bundle size reduction
DmitryAnansky
left a comment
There was a problem hiding this comment.
@vital4u4ok please review the Check yourself and Security section in PR description.
What/Why/How?
This pull request adds new entry points to the
packages/respect-core/package.jsonexports, making it easier to import specific modules directly.New module exports:
./runtime-expressions, allowing direct import of runtime expressions module and its types../run, enabling direct import of therunmodule and its types.This change helps significantly reduce Replay's bundle size in
openapi-docs.Reference
Testing
Screenshots (optional)
Check yourself
Security