napajs
napajs copied to clipboard
Cannot require 'path' in napa.js @0.1.1
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.
I cant import any built-in modules to my workers.
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.