napajs icon indicating copy to clipboard operation
napajs copied to clipboard

Cannot require 'path' in napa.js @0.1.1

Open fs-eire opened this issue 8 years ago • 2 comments

Change e0696c528807cac194db5d679cec7f0ed2bb7655 introduced this bug.

When zone.execute('path', ...) , the first arg will be rewrited to join with the current folder, thus cause it not recognized as built-in module.

fs-eire avatar Aug 24 '17 00:08 fs-eire

I cant import any built-in modules to my workers.

rodrigogs avatar Feb 14 '18 12:02 rodrigogs

Thanks for your feedback, @rodrigogs. Most node built-in modules are not supported by napa workers for now, especially those I/O bound ones, because napa.js is designed for computation heavy tasks. While we are working on napa.js 0.3.0 Node.js API compatibility for this.

helloshuangzi avatar Feb 14 '18 16:02 helloshuangzi