next.js
1b1cb3ee - Add `compiler.define` option (#71802)

Commit
1 year ago
Add `compiler.define` option (#71802) Adds a `compiler.define` option to next.config.js to statically replace any variables during build-time for Turbopack. This is similar to Webpack's `DefinePlugin`. Relates to: https://github.com/vercel/next.js/discussions/71476 --------- Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Author
Luca Forstner
Parents
Loading