-
Notifications
You must be signed in to change notification settings - Fork 0
Add documentation #4
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
base: next
Are you sure you want to change the base?
Conversation
0a06934
to
5b5251d
Compare
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 primarily adds documentation links for the build reporter and sourcemap uploader plugins while also performing some refactoring and cleanup in configuration handling and tests.
- Updated tests to use the package.json version and improved test descriptions.
- Refactored plugin configuration interfaces by replacing custom options with shared types from src/config.ts.
- Updated README to include new documentation links for both plugins.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
test/source-map-uploader-plugin.test.ts | Updated import and configuration usage to reference the package.json version and improved test texts. |
test/build-reporter-plugin.test.ts | Wrapped build call in a try/catch block to ignore unrelated errors and updated logging expectation. |
src/source-map-uploader-plugin.ts | Refactored plugin configuration, removed production mode check, and updated upload options signature. |
src/config.ts | Introduced shared configuration interfaces for consistency across plugins. |
src/build-reporter-plugin.ts | Updated configuration type and target resolution for build reporting. |
README.md | Added documentation sections with links for both plugins. |
Comments suppressed due to low confidence (1)
src/source-map-uploader-plugin.ts:15
- The removal of the production mode check means sourcemaps will now be uploaded in all builds, including non-production ones. If this change is intentional, please ensure the documentation is updated to reflect the new behavior.
// Removed production mode check, previously: if (enableSourcemapUploads) {
@@ -0,0 +1,9 @@ | |||
// re-map the log level option to match the bugsnag-cli log level | |||
const getLogLevel = (logLevel: string | undefined) => { |
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.
@joshedney I've added a helper to ensure the provided log level matches the level in the cli
Goal
Add links to Vite documentation on docs pages.
Config options re-validated with upload js docs