Skip to content

fix: outputDir is not working in webpack-plugin#1380

Merged
yifancong merged 7 commits intomainfrom
fix/webpack-plugin-outputDir
Oct 27, 2025
Merged

fix: outputDir is not working in webpack-plugin#1380
yifancong merged 7 commits intomainfrom
fix/webpack-plugin-outputDir

Conversation

@yifancong
Copy link
Copy Markdown
Contributor

Summary

fix: outputDir is not working in webpack-plugin

Related Links

Copilot AI review requested due to automatic review settings October 27, 2025 09:27
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 27, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 2581322
🔍 Latest deploy log https://app.netlify.com/projects/rsdoctor/deploys/68ff60b3e25cb80008947783
😎 Deploy Preview https://deploy-preview-1380--rsdoctor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

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 fixes an issue where the outputDir configuration was not being properly set in the webpack plugin. The fix ensures that the output directory is correctly configured based on either the user-provided reportDir option or the compiler's outputPath, before writing the store.

Key Changes:

  • Updated output directory configuration to be set dynamically in the done method using compiler context
  • Added support for outside instances with parent SDK references
  • Added comprehensive test coverage for various output directory scenarios

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/webpack-plugin/src/plugin.ts Implements the core fix by setting outputDir in the done method with compiler.outputPath fallback and parent SDK support
packages/webpack-plugin/tests/outputDir.test.ts Adds comprehensive test coverage for outputDir functionality across different plugin configurations
packages/webpack-plugin/tests/test-utils.ts Updates import path for RsdoctorWebpackPluginOptions type definition

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/webpack-plugin/tests/test-utils.ts Outdated
Comment thread packages/webpack-plugin/src/plugin.ts
@yifancong yifancong force-pushed the fix/webpack-plugin-outputDir branch 2 times, most recently from 003a420 to 14ff91b Compare October 27, 2025 10:49
@yifancong yifancong force-pushed the fix/webpack-plugin-outputDir branch from 14ff91b to 4df27e1 Compare October 27, 2025 10:51
@yifancong yifancong requested a review from 9aoy October 27, 2025 12:21
@yifancong yifancong merged commit ba1357f into main Oct 27, 2025
8 checks passed
@yifancong yifancong deleted the fix/webpack-plugin-outputDir branch October 27, 2025 12:46
@yifancong yifancong mentioned this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants