-
Notifications
You must be signed in to change notification settings - Fork 791
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
feat: allow for Pages projects to upload sourcemaps #5861
Conversation
🦋 Changeset detectedLatest commit: 90afda1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-wrangler-5861 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5861/npm-package-wrangler-5861 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-wrangler-5861 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-create-cloudflare-5861 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-cloudflare-kv-asset-handler-5861 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-miniflare-5861 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-cloudflare-pages-shared-5861 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/9386500176/npm-package-cloudflare-vitest-pool-workers-5861 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
0de4833
to
019d555
Compare
1f3aad7
to
7adc86c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending Frameworks approval. It'd also be great to see an e2e test or similar of this uploading sourcemaps from a framework build process
packages/wrangler/src/deployment-bundle/find-additional-modules.ts
Outdated
Show resolved
Hide resolved
Tested with the Remix sample @zebp graciously provided ❤️ I can confirm that the dash realtime logs seem to be picking up the sourcemaps 😄 🥳 By introducing an issue in the
whilst with sourcemaps (using this PR's prerelease) I get:
💪 🚀 |
The changes generally look good to me, except the few small points I commented above 👆 But also, as it has been pointed out by @CarmenPopoviciu the docs haven't yet been updated Regarding the lack of e2es @penalosa mentioned.... yeah that'd also be quite a nice addition but I can see that the |
@zebp do you have a docs ticket/PR you can link? |
I've started one but I haven't created the PR yet, I'll have it up in a few hours. |
7adc86c
to
90afda1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! thanks a lot for addressing my comments @zebp 🚀
(and thanks for the docs PR ❤️)
Does this help at all with uploading source maps to Sentry for those using |
Adds the ability for Pages projects to use the new sourcemap support in Workers to get remapped stacktraces in the dashboard's real-time logs.
Fixes WP-959 WP-960 WP-961.
Author has addressed the following