This might be a more appropriate issue to open in https://github.com/SWI-Prolog/swipl-devel/ down the line; but I think it is fine to keep it here for now as I don't expect this will be a priority for anyone anytime soon.
It would be nice to have a much smaller build of swipl-web that does not make use of the path, fs and crypto modules; and also does not do any fetch handling internally.
This means that use cases with apps that just want to run basic queries don't need to import unecessary code into their apps.
I'm analyse tree-shaking downstream can offer for this particular file; which could well make this a moot point to solve anyway.
This might be a more appropriate issue to open in https://github.com/SWI-Prolog/swipl-devel/ down the line; but I think it is fine to keep it here for now as I don't expect this will be a priority for anyone anytime soon.
It would be nice to have a much smaller build of
swipl-webthat does not make use of thepath,fsandcryptomodules; and also does not do any fetch handling internally.This means that use cases with apps that just want to run basic queries don't need to import unecessary code into their apps.
I'm analyse tree-shaking downstream can offer for this particular file; which could well make this a moot point to solve anyway.