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

Support both CommonJS and EsModule #102

Closed
samchon opened this issue Oct 9, 2022 · 0 comments
Closed

Support both CommonJS and EsModule #102

samchon opened this issue Oct 9, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@samchon
Copy link
Owner

samchon commented Oct 9, 2022

It would better to support both CommonJS and EsModule through below package.json configuration.

Also, special configuration of tsconfig.json building both mode also required.

{
  "typings": "index.d.ts",
  "main": "index.cjs",
  "module": "index.mjs"
}
@samchon samchon added the enhancement New feature or request label Oct 9, 2022
@samchon samchon self-assigned this Oct 9, 2022
@samchon samchon added this to To do in v2.5 Update via automation Oct 9, 2022
@samchon samchon closed this as completed in 3366811 Oct 9, 2022
samchon added a commit that referenced this issue Oct 9, 2022
Close #102 - support both CommonJS and EsModule
v2.5 Update automation moved this from To do to Done Oct 9, 2022
samchon added a commit that referenced this issue Oct 10, 2022
samchon added a commit that referenced this issue Oct 10, 2022
Complement #102 - edit mjs files
samchon added a commit that referenced this issue Oct 10, 2022
bintester pushed a commit to bintester/tstl that referenced this issue Oct 26, 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
Projects
Development

No branches or pull requests

1 participant