Skip to content

Comments

(docs): add warning to tsdx.config.js usage#400

Merged
swyxio merged 1 commit intojaredpalmer:masterfrom
agilgur5:tsdx-config-warning
Jan 2, 2020
Merged

(docs): add warning to tsdx.config.js usage#400
swyxio merged 1 commit intojaredpalmer:masterfrom
agilgur5:tsdx-config-warning

Conversation

@agilgur5
Copy link
Collaborator

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.

@agilgur5
Copy link
Collaborator Author

Oook, here's another example of tests randomly failing on existing code in a PR that doesn't change any source code (only docs). Seems related to errors I was getting in #397 (comment) and #367 (comment) . It didn't seem like they were race conditions, but now I'm not sure if this is just filesystem unreliability either given how frequently it's occurred. Not sure what to do about it 😕

- similar to the ones that exist in react-app-rewired and customize-cra
  as, like CRA, changing TSDX internals is a fragile path
@agilgur5 agilgur5 force-pushed the tsdx-config-warning branch from 85f82a4 to 10a1058 Compare December 31, 2019 21:21
@swyxio swyxio merged commit 35fa947 into jaredpalmer:master Jan 2, 2020
@agilgur5 agilgur5 mentioned this pull request Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants