Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Conversation

@minizzang
Copy link
Contributor

Fix sourcemapOutput Overwrite

There's an issue where the sourcemap output is overwritten when both the sourcemap output and output directory are used together in the CLI.


if (command.outputDir) {
command.sourcemapOutput = path.join(command.outputDir, bundleName + ".map");
if (command.sourcemapOutput) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we check if the sourcemapOutput already ends with .map? In that case we don't need adding it manually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing that out! I've updated it.

@lucen-ms lucen-ms merged commit e9ad2ca into microsoft:main Dec 2, 2024
3 checks passed
@ukcasso
Copy link
Contributor

ukcasso commented Dec 18, 2024

Due to the PR merge, the location of the build output used in the existing appcenter has changed.
There may be confusion for those who want to use the appcenter command as is.

Wouldn't it be better to modify these outputs in a personal repository?
@lucen-ms

@DmitriyKirakosyan
Copy link
Contributor

@ukcasso Thank you for your feedback! This PR addresses an issue with incorrect behavior, so we believe it’s important to merge it into the public repository to ensure consistency and accuracy for everyone. We appreciate your understanding!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants