Skip to content

Conversation

gpbl
Copy link
Owner

@gpbl gpbl commented Aug 1, 2025

Addresses #2763

  • disable source maps in the tsconfig for the build
  • remove unnecessary files from the package distribution

@gpbl gpbl requested a review from rodgobbi August 1, 2025 07:41
},
"files": [
"dist",
"src",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The styles files in the exports configuration are still referencing the src path, I think this will cause #2714 again.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good point, thanks! I added back the styles only.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gpbl FYI, the same code changes we have in this PR were the cause of the issue.
This issue will likely happen again.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah I bet the issue there was related to source maps, which I'd like to remove here - after all the code is not minified and I don't see benefits of having them. Do you agree?

Copy link
Collaborator

Choose a reason for hiding this comment

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

For sure, I think it's better to provide the source code with the package, and bundler can compute the source map from it.

@gpbl gpbl requested a review from rodgobbi August 2, 2025 06:03
@gpbl
Copy link
Owner Author

gpbl commented Aug 4, 2025

Thanks for the review @rodgobbi !

@gpbl gpbl merged commit 9c7b2c6 into main Aug 4, 2025
20 checks passed
@gpbl gpbl deleted the gpbl/remove-src-maps branch August 4, 2025 08:46
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.

2 participants