next.js
e7c04f67 - Also rewrite requires in page templates with Webpack (#95446)

Commit
37 days ago
Also rewrite requires in page templates with Webpack (#95446) Thus far, it wasn't possible to use `require()` in a template file with Webpack. But I needed to add a `if(NEXT_RUNTIME !== "edge") { const x = require("../../something"); }` Turbopack doesn't do any regex rewrite hacks, so this just worked
Author
Parents
Loading