Skip to content

fix(dts-plugin): auto inject compiler output path to avoid duplicate zip file#3401

Merged
zhoushaw merged 2 commits intomainfrom
fix/dts-prod
Dec 26, 2024
Merged

fix(dts-plugin): auto inject compiler output path to avoid duplicate zip file#3401
zhoushaw merged 2 commits intomainfrom
fix/dts-prod

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Dec 26, 2024

Description

auto inject compiler output path to avoid duplicate zip file

if compiler.options.output is dist/mf , it generated zip file on dist and dist/mf before . Now add compiler.output.path to avoid this .

before:

image

after:

image

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Dec 26, 2024

🦋 Changeset detected

Latest commit: 272bd38

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@module-federation/dts-plugin Patch
@module-federation/enhanced Patch
@module-federation/manifest Patch
@module-federation/rspack Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/rsbuild-plugin Patch
@module-federation/storybook-addon Patch
@module-federation/modernjsapp Patch
@module-federation/runtime Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/devtools Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/retry-plugin Patch
@module-federation/data-prefetch Patch
@module-federation/error-codes Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
website-new Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 26, 2024

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 272bd38
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/676cf32c05b2bd0008fb43ca
😎 Deploy Preview https://deploy-preview-3401--module-federation-docs.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 site configuration.

@zhoushaw zhoushaw merged commit c90bba2 into main Dec 26, 2024
@zhoushaw zhoushaw deleted the fix/dts-prod branch December 26, 2024 09:17
@2heal1 2heal1 mentioned this pull request Dec 27, 2024
context: compiler.context,
outputDir: path.relative(
compiler.context,
compiler.outputPath || compiler.options.output.path,
Copy link
Copy Markdown

@mcroba mcroba Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhoushaw I have found an issue when I don't have any path defined in my config.

Shouldn't we have a fallback to dist (default value) here?

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