Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

fix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandler - #7275

Merged
pi0 merged 5 commits into
mainfrom
fix/webpack-handlers
Sep 7, 2022
Merged

fix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandler#7275
pi0 merged 5 commits into
mainfrom
fix/webpack-handlers

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#14809

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Currently the first next() call from webpack devMiddleware short-circuits second next call from hotMiddleware meaning we currently get a 404 for webpack HMR endpoint.

I think it's a non-breaking change to update schema type for devMiddleware (as CompatibilityEvent should be backwards compatible).

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroedanielroe added bug Something isn't working webpack ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf labels Sep 6, 2022
@danielroe
danielroe requested a review from pi0September 6, 2022 10:50
@danielroedanielroe self-assigned this Sep 6, 2022
@netlify

netlifyBot commented Sep 6, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit8b6c435
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/631754d157cebb00095ed38d

pi0
pi0 approved these changes Sep 6, 2022

@pi0pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@pi0

pi0 commented Sep 6, 2022

Copy link
Copy Markdown
Member

I think we can now remove pify promisify if using h3 to do this.

@pi0
pi0 self-requested a review September 6, 2022 10:57
@pi0pi0 changed the title fix(schema, webpack): promisify webpack dev/hot handlersfix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandlerSep 7, 2022
@pi0
pi0 merged commit 2bb898f into mainSep 7, 2022
@pi0
pi0 deleted the fix/webpack-handlers branch September 7, 2022 08:35
This was referenced Sep 9, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xbugSomething isn't working❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perfwebpack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Vue Router warn]: No match found for location with path "/__webpack_hmr/client"

2 participants

@danielroe@pi0