Wednesday, 10 May 2017

How to correctly define Node.js functions and properties for Prepack?

I want to use prepack on my NPM package, but i getting errors like require is not defined, and module is not defined.

I tried to define this variables like:

__assumeDataProperty(global, 'require', __abstract('function'))

but i getting error unknown reference type

How can i can correctly define Node.js global functions and properties for prepack?



via Качалов Тимофей

No comments:

Post a Comment