So far @randoms-pkg/code-generator is only generating files that have commonjs imports.
There are several options we could support:
- Es6
modules imports.
- Add an Optional field
type that will describe the modules type.
Example
# Es6 module
import _ from 'path';
# commonjs
const _ = require ('path');
"type": "commonjs" | "module"
So far
@randoms-pkg/code-generatoris only generating files that havecommonjsimports.There are several options we could support:
modulesimports.typethat will describe the modules type.Example