-
Notifications
You must be signed in to change notification settings - Fork 70
require
substitution is not working
#414
Comments
Ok so I got progress
Could be awesome if
My problem is solved anyway so thanks for your answer and god bless this code addition 6 days ago :D |
@fdutey Feel free to send a PR that enhances the experience! |
For feedback, that shouldn't be a problem. For the second one though, I'm very unfamiliar with relay compiler so sending options from it to the plugin if it doesn't allow it already (need to check) is gonna be impossible. I was actually thinking about a |
I also came across an issue where this plugin was (very quietly) failing to parse our +1 for logging these errors to the console! All of our other TS tooling was working properly, so it wasn't obvious that I needed to start dropping logs in |
CLosing this as it seems to be fixed |
Im actually wondering if i'm missing something obvious on how to use this plugin. No matter if I add it to my package.json or not, it doesn't change anything.
I'm running into the problem where
require
is being spit into my browser (using relay with vitejs) and the browser doesn't know what to do with that. I tried every possible solution (babel-commonjs, write my own vite plugins...) but nothing is solving the issue.I saw that you have, in master branch, some transformers to address this specific problem (even though it's been said in this discussion facebook/relay#3354 that it should be part of relay compiler and not this plugin).
I cloned the repo, built the plugin (with a lot of efforts :>) and yet, nothing happens. It's like the plugin is not here.
If I put some
throw
in the code, in root functions, it's still working.And yet, there's nothing in the documentation saying that there's any specific configuration to do to activate this plugin (nor in relay compiler's code to declare such plugins).
Thanks in advance.
The text was updated successfully, but these errors were encountered: