Skip to content

Commit

Permalink
(docs): add warning to tsdx.config.js usage
Browse files Browse the repository at this point in the history
- similar to the ones that exist in react-app-rewired and customize-cra
  as, like CRA, changing TSDX internals is a fragile path
  • Loading branch information
agilgur5 committed Dec 28, 2019
1 parent be3c410 commit 85f82a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ _TODO: Simple guide to host error codes to be completed_

### Rollup

> **❗⚠️❗ Warning**: <br>
> These modifications will override the default behavior and configuration of `tsdx`. As such they can invalidate internal guarantees and assumptions. These types of changes can break internal behavior and can be very fragile against updates. Use with discretion!
TSDX uses Rollup under the hood. The defaults are solid for most packages (Formik uses the defaults!). However, if you do wish to alter the rollup configuration, you can do so by creating a file called `tsdx.config.js` at the root of your project like so:

```js
Expand Down

0 comments on commit 85f82a4

Please sign in to comment.