chore(web): document client fallback rationale in webpack config

Clarify why browser bundles stub Node-only html-to-docx dependencies in Next.js.
This commit is contained in:
kumarabhirup 2026-03-04 11:07:58 -08:00
parent b2c946b08d
commit 1651b95886
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167

View File

@ -21,6 +21,7 @@ const nextConfig: NextConfig = {
webpack: (config, { dev, isServer }) => {
if (!isServer) {
// html-to-docx references Node-only modules that should not be resolved in browser bundles.
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,