-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Provide require() in console #67
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
What is the use case for this? So I can go to my dev tools console and access a module? That would be helpful, I'd like to dig into it. |
Yea, it's for debugging individual modules when something specific doesn't quite work, and you want to call it directly. |
You can try it out on facebook.com fyi, it's super useful for debugging |
Closing for a lack of a specific proposal. It’s not clear how this would work with relative imports so unless somebody prototypes this, I likely won’t be working on it. |
We should figure out a way to provide a global
require()
in DEV mode in the browser console.It could be implemented as a webpack plugin (everything is a plugin in webpack right?)
It could work like this:
require('moduleName')
just worksrequire('./full/path/from/root')
is the only wayStill not too bad!
The text was updated successfully, but these errors were encountered: