Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 2, 2020

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 😕

README.md Outdated Show resolved Hide resolved
- similar to the ones that exist in react-app-rewired and customize-cra
  as, like CRA, changing TSDX internals is a fragile path
@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