Adds the configuration for PnP/Typescript#6856
Conversation
|
Fast work! Question: I don't see usage of the https://github.com/arcanis/pnp-webpack-plugin in this PR. Is use of the pnp-webpack-plugin no longer required when working with webpack? |
|
Until webpack/enhanced-resolve#168 gets merged the In the case of TypeScript, since it uses its own resolution instead of |
|
Thanks @arcanis. Does Jest work as expected with this PR? |
|
Yep - running As far as I can remember, Jest just uses Babel to strip the TS types, so no particular TS resolution involved - it simply uses the classic Jest resolution (which supports PnP out of the box since 24.5). |
|
Can't wait for this aha |
|
Any blocker? |
|
No, I think this looks good. Thanks for the reminder. 😀 |
|
Thanks! ❤️ |
The
fork-ts-checker-webpack-pluginpackage just released an update that allows to specify custom resolution schemes. This makes it possible for Create-React-App to have native PnP support even when using TypeScript.I've tested this diff locally and it seemed to work.