jstransformers / jstransformer-function

Function support for JSTransformers.
http://npm.im/jstransformer-function
MIT License
0 stars 0 forks source link

Add require() support #1

Closed RobLoach closed 8 years ago

RobLoach commented 9 years ago

This lets you call require() from inside the function code. Example here

Think of any other globals that we'd want available in the execution code?

ForbesLindesay commented 9 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?

RobLoach commented 8 years ago

Moved to https://github.com/jstransformers/jstransformer-function/issues/4 so that we can get that feature in.