You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched issues and couldn’t find anything (or linked relevant results below)
Problem
Webpack supports a mode setting, which can be set to production, development, or none. MDX supports a boolean development, but does not use webpack’s mode.
It would make sense to set the MDX development option based on Webpack’s mode.
Solution
Default the MDX development option to Webpack’s mode === 'development'. If development is specified explicitly in the loader options, that should take precedence.
Alternatives
We could also use mode !== 'production', which would change the behaviour of the 'none' mode, but I think it’s best if 'none' would use the default value provided by @mdx-js/mdx.
The text was updated successfully, but these errors were encountered:
Initial checklist
Problem
Webpack supports a
mode
setting, which can be set toproduction
,development
, ornone
. MDX supports a booleandevelopment
, but does not use webpack’smode
.It would make sense to set the MDX
development
option based on Webpack’smode
.Solution
Default the MDX
development
option to Webpack’smode === 'development'
. Ifdevelopment
is specified explicitly in the loader options, that should take precedence.Alternatives
We could also use
mode !== 'production'
, which would change the behaviour of the'none'
mode, but I think it’s best if'none'
would use the default value provided by@mdx-js/mdx
.The text was updated successfully, but these errors were encountered: