-
Notifications
You must be signed in to change notification settings - Fork 1k
[feat] Replace internal walker with nft #1138
Comments
No response yet? |
Nope |
Sounds like a good idea. I am not really able to comment much before we actually did it, though. |
I think that who knows walker the most here is @erossignon as he has worked on it and also bootstrap in his last changes, I would like to know what he thinks about this. |
In fact , we could keep the walker as-is and run ncc as a prebuild step , the result of the ncc step could be incorporated to the packaged exececutable; IMO, this is already possible today to combine @vercel/ncc and @vercel/pkg ... why do we need do something extra ? |
Hey, Example : . Is this a possible use case with nft ? |
In that case native |
I used ncc and found out that canvas.node didn't dropped in build folder as a dependency Can it be that it is trouble with canvas, not the pkg or ncc it self? I can't quite catch but all issues which happens follow ups to canvas module |
@skaneprime Did you try to use pkg with |
@robertsLando there was a lot of logs. Is there a way to store debug into file?
|
Forgot to mention. Yes, I added canvas.node as an asset in every way possible. Played with paths (moved it to src folder from node_modules, added the whole canvas module as an asset etc) but no result. BUT I noticed something. I have another native module. It is FSEvents ( dunno from which module. I guess from chokodiar ) and it works well. |
Based on your logs seems that this canvas.node isn't installed correctly, that could be the reason |
I can't know in advance what .node dependencies will be, because users can add modules themselves ... It's like plugin system, user can add or remove plugin at runtime |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit. |
AFAIK walker is actually used to get all the files needed by the runtime to run, including node_modules, this is exaclty what nft does.
This could fix some issues that we are having like:
#1130
#1135
#1072
/cc @jesec @leerob @erossignon @hipstersmoothie thoughts?
We could also consider something with ncc
The text was updated successfully, but these errors were encountered: