Skip to content

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

Open
wants to merge 9 commits into
base: next
Choose a base branch
from
Open

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented May 15, 2025

Goal

Add links to Vite documentation on docs pages.

Config options re-validated with upload js docs

@gingerbenw gingerbenw force-pushed the PLAT-14031/vite-documentation branch from 0a06934 to 5b5251d Compare May 16, 2025 16:36
@gingerbenw gingerbenw requested a review from Copilot May 16, 2025 16:38
Copy link

@Copilot Copilot AI left a 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) => {
Copy link
Member Author

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

@gingerbenw gingerbenw marked this pull request as ready for review May 16, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant