feat(vite-plugin-cloudflare): add tunnel shortcut hint#13922
Conversation
🦋 Changeset detectedLatest commit: 23a9b7d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
✅ All changesets look good |
|
Now let me check the The test at line 401 mocks
That logic checks out. Now let me look at a potential issue: when Let me check if Let me also verify the test for "prints shortcut hints in registration order" at line 123. It mocks One thing I notice: the Let me verify one more thing — in test "prints shortcut hints in registration order" (line 123), the mock Now let me think about the actual behavioral change and potential issues:
Wait, let me re-examine the old code more carefully. Each
The new code consolidates all of this into a single function with a single wrapper and a single call with all shortcuts. This is a much cleaner approach. Let me check if there's an issue with the The hint for bindings is also now conditional on Overall, this PR is a clean refactor that consolidates three separate shortcut registration functions into one, adds the tunnel hint, and adds proper tests. The code is correct and the tests are comprehensive. LGTM |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
36bbf62 to
94c717a
Compare
94c717a to
23a9b7d
Compare
petebacondarwin
left a comment
There was a problem hiding this comment.
Nice refactoring!
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Fixes n/a.
This diff looks huge mainly as I refactored the shortcuts plugin to patch bindCLIShortcuts and register custom shortcuts all together instead of doing it individually, so that the order of shortcuts and hints logged are more predictable.
You can review this per commit.
A picture of a cute animal (not mandatory, but encouraged)