Improve error message when modules cannot be resolved during bundling#12931
Improve error message when modules cannot be resolved during bundling#12931dario-piotrowicz wants to merge 5 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 8e2b0ff The changes in this PR will be included in the next version bump. 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 |
|
✅ All changesets look good |
|
The Now let me review everything I've seen and assess: Summary of changes:
Assessment:
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
wrangler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
petebacondarwin
left a comment
There was a problem hiding this comment.
Happy to have an improved error message here. I left a comment about the actual content of the message as I think we could be more concrete and helpful.
0a6e0a1 to
53706b0
Compare
Fixes #7095
When a module cannot be resolved during bundling, Wrangler now suggests using the
aliasconfiguration option to substitute it with an alternative implementation. This replaces esbuild's default suggestion to "mark the path as external", which is not a supported option in Wrangler.A picture of a cute animal (not mandatory, but encouraged)