-
-
Notifications
You must be signed in to change notification settings - Fork 12
perf: prebundle runtime dependencies #436
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
Conversation
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements prebundling of runtime dependencies to improve application startup performance. The changes move several packages from runtime dependencies to bundled dependencies and update the build configuration accordingly.
- Updated rslib configuration to bundle specific runtime dependencies using the
bundledPackages
option - Moved testing-related dependencies from
dependencies
todevDependencies
in package.json - Added license information for newly bundled packages
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
packages/core/rslib.config.ts | Updated DTS bundle configuration to specify packages for prebundling |
packages/core/package.json | Moved chai and vitest packages from runtime to dev dependencies |
packages/core/LICENSE | Added license notices for bundled packages |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
packages/core/package.json
Outdated
"pathe": "^2.0.3", | ||
"std-env": "^3.9.0", | ||
"tinypool": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^5.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving 'chai' from dependencies to devDependencies may break runtime functionality if the package is used at runtime. Verify that 'chai' is only used in tests or development environments.
Copilot uses AI. Check for mistakes.
packages/core/package.json
Outdated
"pathe": "^2.0.3", | ||
"std-env": "^3.9.0", | ||
"tinypool": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^5.2.1", | ||
"@types/chai": "^5.2.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving '@types/chai' from dependencies to devDependencies may cause TypeScript compilation issues if these types are exposed in the public API. Verify that these types are not part of the public interface.
"@types/chai": "^5.2.2", | |
"tinypool": "^1.1.1", | |
"@types/chai": "^5.2.2" | |
}, | |
"devDependencies": { | |
"chai": "^5.2.1", |
Copilot uses AI. Check for mistakes.
'@vitest/expect', | ||
'@vitest/snapshot', | ||
'@vitest/utils', | ||
'@vitest/spy', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package '@vitest/spy' is listed in bundledPackages but was not moved from dependencies to devDependencies in package.json. This inconsistency should be addressed to ensure proper dependency management.
Copilot uses AI. Check for mistakes.
Summary
Prebundle runtime dependencies to speed up runtime.
before:

after:

Related Links
Checklist