The existing module resolution logic has two logic errors which create a confusing experience when the customer's module isn't found:
null is never returned even when the module is not found, this means function framework doesn't early return with an exception when it should if the function does not exist.
The error message will accurately reflect the original path instead of including /function.js prefix which gets incorporated as a side effect of the implementation today.
This change simplifies the function and cleans up these errors.
The existing module resolution logic has two logic errors which create a confusing experience when the customer's module isn't found:
null
is never returned even when the module is not found, this means function framework doesn't early return with an exception when it should if the function does not exist./function.js
prefix which gets incorporated as a side effect of the implementation today.This change simplifies the function and cleans up these errors.