BuilderIO / hydration-overlay

Overlay for hydration errors with explicit diff between renders.

Home Page:https://www.builder.io/blog/announcing-react-hydration-overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Shubhdeep12 opened this issue · comments

Here in this PR - #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.