(docs): add warning to tsdx.config.js usage #400
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
as, like CRA, changing TSDX internals is a fragile path
Related to #389 (comment) , #379 . This escape hatch is being used quite a bit by TSDX users as seen in various issues, but I'm not sure if all are aware of the risks that inherently entails (as I detailed in #389 (comment)). Those risks should be more explicit, as this may catch users off-guard, especially during updates, as even a patch update could break usage inside
tsdx.config.js
.Plugins could at least pin a peer dependency and update when their own tests pass for newer versions, but ad-hoc code is more brittle than that. Notably, Razzle does support plugins, and those are listed as the first option before modifying
webpack
config directly (rollup
for TSDX)Probably makes sense to leave this to @jaredpalmer as Razzle doesn't quite have the same language.