pierrec / node-eval

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

Import not working? #19

Open MickL opened 4 years ago

MickL commented 4 years ago

I tried to use an import statement instead of the require:

import * as _eval from 'eval';

But when using the module I get the error message _eval is not a function.