Conversation
🦋 Changeset detectedLatest commit: 61c3035 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/12634299818/npm-package-wrangler-7625You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7625/npm-package-wrangler-7625Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-wrangler-7625 dev path/to/script.jsAdditional artifacts:wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-workers-bindings-extension-7625 -O ./cloudflare-workers-bindings-extension.0.0.0-vdb49d7d66.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vdb49d7d66.vsixnpx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-create-cloudflare-7625 --no-auto-updatenpm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-kv-asset-handler-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-miniflare-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-pages-shared-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-unenv-preset-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-vitest-pool-workers-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-workers-editor-shared-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-workers-shared-7625npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12634299818/npm-package-cloudflare-workflows-shared-7625Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
77d3542 to
7f8eacf
Compare
| "index.js", | ||
| ` | ||
| import path from 'path'; | ||
| import path from 'node:path'; |
There was a problem hiding this comment.
| "wrangler": patch | ||
| --- | ||
|
|
||
| feat(wrangler): use unenv bulitin dependency resolution |
There was a problem hiding this comment.
Some more explanation here would be helpful.
Using unenv's resolution for what? For all dependencies? Just unenv ones? etc.
There was a problem hiding this comment.
I'll fix in a follow-up PR to avoid having to re-run the tests
There was a problem hiding this comment.
If you only change the md file then most of the tests are skipped.
There was a problem hiding this comment.
But perhaps not in a PR that has other changes...
| path: aliasAbsolute[args.path], | ||
| external: external.includes(unresolvedAlias), | ||
| path: alias[args.path], | ||
| external: external.includes(unresolved), |
There was a problem hiding this comment.
Shoudn't the external paths already be resolved?
In which case why use unresolved here, rather than path?
There was a problem hiding this comment.
TBH I don't fully get what the code is doing here...
There was a problem hiding this comment.
I tried to update the code but revert to the original behavior
petebacondarwin
left a comment
There was a problem hiding this comment.
LGTM - the regression will not re-occur thanks to test at https://github.com/cloudflare/workers-sdk/pull/7614/files#diff-dc9521e48f13c8af9737ee8c555eb22b138b148285e843ce1b4b9bdb3b2e3dd7R1
|
Thanks @petebacondarwin for the review |

Reapply of #7541
The initial PR was reverted by #7583
The root caused was fixed in #7614 (via unjs/unenv#378)
/cc @pi0