-
-
Notifications
You must be signed in to change notification settings - Fork 246
Custom resolveModuleName #181
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
Comments
Hey @arcanis! That's a super kind offer and it'd be greatly appreciated! However before you put effort in, I think there might be something that needs to be resolved first. Right now, See the full discussion about making that PR here: Timer#1 By the sounds of it, this will break PnP. To quote @Timer:
By the sounds of it, I would love CRA and PnP to both work with the Do you have any insight? I'm genuinely not sure what to do here. |
Most of this is going to be painful until yarnpkg/yarn#6487 is supported. I'd love to have more open discussion about this. Don't let our change block this feature, though! I'm sure we can figure out a way to integrate both of these changes. |
Hey!
Totally makes sense 👍
In the case of create-react-app, yes. In the more general case of an application depending on Regarding optional peer dependencies, we're still discussing the details (cf the rfc thread) but I plan to ship them starting from Yarn 1.13 (in a month or so). There's no telling how much time it will take for npm to catch up, though, assuming they even want to do it (I've not heard from them yet). Would that be a blocker, @Timer?
I think the best would be to:
How does that sound? |
@arcanis as long as npm has a plan to implement I think we'd be fine adding the peer dep back (assuming backwards compatibility). |
Yep, optional peer dependencies will be backward compatible (they'll just generate a warning on older package managers). |
Is that about right @arcanis? Sorry to chase - just wanted to make sure I understood your meaning. |
Missed your answer - yep, dropping the peer dependencies is fine by me (don't get me wrong: it has potential to break things even without PnP; but in practice it should work in most cases). I'll setup a PR to add them back as soon as we get optional peer dependencies (and then you'll be free to merge it whenever you feel ready), and in the meantime I'll setup another PR for |
That's awesome - thanks so much! |
* Adds support for custom compilers to CompilerHost * Attaches the options to the plugin * Adds support for IncrementalChecker * Adds a test * Updates the README * Fixes undefined env values on Node 8 * Bumps version * Avoids any
… manually after merging Revert "Enables custom resolver only if they're used in incremental mode (TypeStrong#260)" This reverts commit 3990a13. Revert "Adds support for custom resolvers to CompilerHost (TypeStrong#250) - fixes TypeStrong#181" This reverts commit dfd8933.
Now that support has landed in
ts-loader
for a customresolveModuleName
option, wouldfork-ts-checker-webpack-plugin
be interested in a similar option?My own use case it to make this plugin work with PnP (which is natively supported by create-react-app, itself using fork-ts-checker-webpack-plugin to power its TypeScript part) 🙂
The text was updated successfully, but these errors were encountered: