diff --git a/src/index.js b/src/index.js index f269212..f0c16c7 100644 --- a/src/index.js +++ b/src/index.js @@ -182,7 +182,7 @@ async function bundleMDX({ publicPath: isWriting ? bundlePath : undefined, absWorkingDir: cwd, define: { - 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), + 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'production'), }, plugins: [ globalExternals({