Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Es6 modules support #2

Open
Zain-ul-din opened this issue Jan 15, 2023 · 0 comments
Open

Es6 modules support #2

Zain-ul-din opened this issue Jan 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed proposal general proposal

Comments

@Zain-ul-din
Copy link
Member

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"
@Zain-ul-din Zain-ul-din added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed proposal general proposal labels Jan 15, 2023
@Zain-ul-din Zain-ul-din added this to the Code-Generator 3.0.1 milestone Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed proposal general proposal
Projects
Development

No branches or pull requests

2 participants