BuilderIO / hydration-overlay

Overlay for hydration errors with explicit diff between renders.
https://www.builder.io/blog/announcing-react-hydration-overlay
MIT License
500 stars 17 forks source link

Not able to add webpack config in next.config.ts using hydrationoverlay wrapper #43

Open Shubhdeep12 opened 10 months ago

Shubhdeep12 commented 10 months ago

Here in this PR - https://github.com/BuilderIO/hydration-overlay/pull/41

While adding a test case for next-app-dir-with-sentry-spotlight I added a webpack plugin to run spotlight sidecar but it turns out it was not getting added as the next config was wrapped with

const {
  withHydrationOverlay,
} = require("@builder.io/react-hydration-overlay/next");

on removing the wrapper and just exporting the nextconfig the plugins was getting added and worked fine.