Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Plugin: Fix missing module.ts in sourcemaps #1071

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

jackw
Copy link
Collaborator

@jackw jackw commented Aug 21, 2024

What this PR does / why we need it:
Whilst working on stripping console statements from production builds I noticed sourcemaps didn't contain the module.ts entrypoint. Placing the imports-loader first in the list of module.rules appears to fix this. Below are screenshots of me attempting to place breakpoints in devtools that should resolve to the module.ts file.

Before

Screenshot 2024-08-21 at 12 37 22

After

Screenshot 2024-08-21 at 12 35 53

Additionally it appears to work fine with plugin validator:

image

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @grafana/create-plugin@5.3.1-canary.1071.d689f04.0
# or 
yarn add @grafana/create-plugin@5.3.1-canary.1071.d689f04.0

@jackw jackw added create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged type/bug Something isn't working labels Aug 21, 2024
@jackw jackw self-assigned this Aug 21, 2024
@jackw jackw requested a review from a team as a code owner August 21, 2024 10:39
@jackw jackw requested review from leventebalogh and removed request for a team August 21, 2024 10:39
Copy link

github-actions bot commented Aug 21, 2024

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new patch release.
NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

@jackw jackw requested review from academo and removed request for leventebalogh August 21, 2024 10:39
@jackw jackw merged commit 88f0b51 into main Aug 22, 2024
18 checks passed
@jackw jackw deleted the jackw/fix-source-maps branch August 22, 2024 14:22
@grafana-plugins-platform-bot
Copy link

🚀 PR was released in @grafana/create-plugin@5.3.2 🚀

@grafana-plugins-platform-bot grafana-plugins-platform-bot bot added the released This issue/pull request has been released. label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-plugin related to the create-plugin tool patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released. type/bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

3 participants