sweet-js/sweet-core

Is there any way to import node stdlib modules?

lujiajing1126 opened this issue · 3 comments

something like import path from 'path' for syntax;

I found a Error while importing modules like path

Error: ENOENT: no such file or directory, open 'path'

Is path an installed module? If not, you have to use a relative path

import path from './path' for syntax;

I mean here path is a built-in node stdlib. How can I install that?

Not yet. At the moment the only modules you can import for syntax must have a 'lang sweet.js' directive. The remaining module work is being tracked at #633 so I'll close this issue.