Tuesday 16 May 2017

How does nodejs use the module key to publish es6 modules?

The rollup documentation has the following example of importing the util.ajax function:

import { ajax } from 'utils';

Does node expose an ES6 module containing utils via the module key on package.json and is this the general pattern used by NodeJS?



via Ole

No comments:

Post a Comment