Skip to content

Commit c260f3f

Browse files
authored
Fix broken url
1 parent 4160e96 commit c260f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ Ideally [TypeScript would allow overrides](https://github.com/microsoft/TypeScri
420420
- **How do I use Rollpkg with JavaScript?**
421421
- The only file that needs to be TypeScript is the entry file `src/index.ts`, the rest of your files can written in JavaScript. This is because Rollpkg uses the TypeScript complier to compile both TypeScript and JavaScript files.
422422
- **Does Rollpkg use Babel?**
423-
- No, Rollpkg uses the TypeScript compiler to translate both TS and JS code to `ES2018` (or your target ECMAScript version), this avoids the [limitations of using TypeScript with Babel](https://kulshekhar.github.io/ts-jest/user/babel7-or-ts) which means your code is fully type checked all the way through the build process. Also, by not using Babel the `tsconfig.json` becomes the single source of truth for how your code is compiled and eliminates the complexity and confusion caused by having both a `tsconfig.json` and a `babel.config.json`.
423+
- No, Rollpkg uses the TypeScript compiler to translate both TS and JS code to `ES2018` (or your target ECMAScript version), this avoids the [limitations of using TypeScript with Babel](https://kulshekhar.github.io/ts-jest/docs/babel7-or-ts) which means your code is fully type checked all the way through the build process. Also, by not using Babel the `tsconfig.json` becomes the single source of truth for how your code is compiled and eliminates the complexity and confusion caused by having both a `tsconfig.json` and a `babel.config.json`.
424424
- **Can I use the new React JSX runtime?**
425425
- Not yet, and it's probably a good idea not to for compatibility reasons. If you were to use the [new JSX runtime](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) in your package it would mean that your package can only be used in apps with a React version that supports the new JSX runtime, which significantly limits compatibility. There are also some complexity issues around supporting the JSX runtime in Rollpkg. The new React JSX transform allows you to avoid importing React in files that use JSX, however, the JSX runtime is not part of React's UMD build. This means that the Rollpkg UMD build still needs to use the `React.createElement(...)` API regardless, which makes the build process more complex.
426426

0 commit comments

Comments
 (0)