-
Notifications
You must be signed in to change notification settings - Fork 6
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
import/require natively available packages #1
Comments
Not sure how to handle Native modules like wifi. For modules like MQTT you should be able to copy the module source into the src folder. |
Apologies for not replying earlier. const Wifi = global.require('Wifi'); I think there might be other ways, but this is a pretty easy approach. |
webpack noob here. Where would that line go? Wouldn't this end up as part of the build? |
I have made some progress with this. I'll clean it up and post - perhaps on the forum. part is still hard coded...
|
So this is finding in the modules folder:
|
I tried using this webpack configuration with the native available packages from espruino like
Wifi
orMQTT
but webpack failed resolving the paths.Any idea how to resolve this?
The text was updated successfully, but these errors were encountered: