pierrec / node-eval

Evaluate node require() module content directly
MIT License
93 stars 20 forks source link

Usage with path and globals, but without context #12

Open ELLIOTTCABLE opened 8 years ago

ELLIOTTCABLE commented 8 years ago

This doesn't work,

const foo = require_eval(body, walkTemplatePath, true).bar

… but this does:

const foo = require_eval(body, walkTemplatePath, {}, true).bar