-
Notifications
You must be signed in to change notification settings - Fork 723
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
fix: allow require
ing alias modules
#6932
Conversation
🦋 Changeset detectedLatest commit: 030bfe0 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/11253830172/npm-package-wrangler-6932 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6932/npm-package-wrangler-6932 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-wrangler-6932 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-create-cloudflare-6932 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-cloudflare-kv-asset-handler-6932 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-miniflare-6932 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-cloudflare-pages-shared-6932 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-cloudflare-vitest-pool-workers-6932 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-cloudflare-workers-editor-shared-6932 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11253830172/npm-package-cloudflare-workers-shared-6932 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
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.
A couple of queries...
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Outdated
Show resolved
Hide resolved
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Outdated
Show resolved
Hide resolved
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Pete Bacon Darwin <[email protected]>
/cc @pi0 |
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Show resolved
Hide resolved
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Show resolved
Hide resolved
It is a nice approach. I would suggest:
|
packages/wrangler/src/deployment-bundle/esbuild-plugins/hybrid-nodejs-compat.ts
Show resolved
Hide resolved
Thanks for super valuable feedback @pi0! I was hoping that given the restricted scope of this (
But if you think this is not safe, using
One "issue" is that the unenv update in wrangler is paused for now because of a different issue. To make the change in unenv, we would need to update unenv and have a release without the perf_hook latest change. Might take longer than just releasing the change here (that we can revert later if no more needed). |
Feel free to open a PR in unenv to revert that. (i think a simply uncomment in preset would solve it) |
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.
Let's merge this for now and iterate on the concerns that @pi0 raised.
I marked the convos as resolved (not sure if it was actually required for that repo). Also one thing I tried is that use the However |
What this PR solves / how to test
Fixes #6896
Author has addressed the following