tall-librarian-49374
07/06/2018, 2:34 PMcloud.API
, should I require
my modules inside the get
function itself? I tried to use request
imported on top of the files and it failed with a warning not to close on requires... So I do
endpoint.get("/", (req, res) => {
const request = require('request');
request(url, ...
white-balloon-205
07/06/2018, 4:21 PMrequire
at runtime.
We are discussing in https://github.com/pulumi/pulumi/issues/1588#issuecomment-401968174 an approach which would allow capture of top-level imports to be interpreted as a top-level require
at runtime - feel free to add in there as well.