Skip to content

Es6 modules support #2

@Zain-ul-din

Description

@Zain-ul-din

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"

Metadata

Metadata

Labels

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions