Skip to content

Conversation

@Yang-33
Copy link
Owner

@Yang-33 Yang-33 commented Mar 27, 2024

ESMでコンパイル + 動かせるようにしただけ

tsconfig.jsonなどがひどい

@Yang-33 Yang-33 force-pushed the 03-add-esm-test-project branch from b7af762 to 3e2308d Compare March 30, 2024 13:17
@Yang-33 Yang-33 force-pushed the 02-support-only-esm-at-first branch 2 times, most recently from c697249 to 8aa376d Compare April 1, 2024 02:47
@Yang-33 Yang-33 force-pushed the 03-add-esm-test-project branch 2 times, most recently from 3126387 to 403e115 Compare April 1, 2024 06:46
@Yang-33 Yang-33 force-pushed the 02-support-only-esm-at-first branch from fb798c5 to 1cba2c3 Compare April 2, 2024 00:38
Yang-33 and others added 3 commits April 2, 2024 09:41
Eventually, we will support both ESM and CJS, but this change will first
support ESM only.
The changes are simple.
1. This changed `import hoge from "./hoge";` to `import hoge from
"./hoge.js";` This is the majority of the changes.
2. This specified in the package.json that it is ESM (`"type":
"module"`).
3. This modified the tsconfig.json for ESM.

Subsequent changes will reintroduce support for CJS. As a result,
line-bot-sdk-nodejs is expected to become a dual package.
@Yang-33 Yang-33 force-pushed the 03-add-esm-test-project branch from 403e115 to 5a813e3 Compare April 2, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants