Skip to content

fix(utils): don't create sourcemap file if disabled#6229

Merged
christian-bromann merged 2 commits intomainfrom
cb/fix-sourcemap-file
Apr 7, 2025
Merged

fix(utils): don't create sourcemap file if disabled#6229
christian-bromann merged 2 commits intomainfrom
cb/fix-sourcemap-file

Conversation

@christian-bromann
Copy link
Copy Markdown
Member

What is the current behavior?

Stencil creates empty sourcemap files with { "sourcesContent": [] } content if sourceMap is disabled. This may be related to the Rollup upgrade which now emits these files.

GitHub Issue Number: ionic-team/ionic-framework#30323

What is the new behavior?

Add an additional check to verify that there is a sourcemap file.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Added unit tests.

Other information

n/a

@christian-bromann christian-bromann requested a review from a team as a code owner April 7, 2025 16:23
@christian-bromann christian-bromann merged commit 31a97d2 into main Apr 7, 2025
76 checks passed
@christian-bromann christian-bromann deleted the cb/fix-sourcemap-file branch April 7, 2025 17:00
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