Closed RobLoach closed 8 years ago
This is fine for compile
, but for compileFile
we should use https://www.npmjs.com/package/resolve to resolve the dependency relative to the file in which the function code is, rather than relative to jstransformer-function.
We could accept a filename
option to do the same thing in the string case?
Moved to https://github.com/jstransformers/jstransformer-function/issues/4 so that we can get that feature in.
This lets you call
require()
from inside the function code. Example hereThink of any other globals that we'd want available in the execution code?