Skip to content

Commit dec1611

Browse files
azuclaude
andauthored
fix: Remove Babel dependencies to fix Node.js 24 compatibility (#1832)
## Summary - Node.js 24でテストが失敗する問題を修正 - 不要なBabel関連の依存を削除 ## 変更内容 - `.mocharc.json`から`@babel/register`の設定を削除 - `package.json`から以下のBabel関連パッケージを削除: - `@babel/core` - `@babel/preset-env` - `@babel/register` ## 背景 プロジェクトは既にES module形式(`"type": "module"`)に移行済みのため、Babelによるトランスパイルは不要です。 Node.js 24では、ES moduleプロジェクトでCommonJS形式の`require`を使用すると、より厳格なエラーチェックが行われるようになりました。`.mocharc.json`で`@babel/register`をrequireしていたことが原因でテストが失敗していました。 ## テスト結果 ローカル環境(Node.js 24.5.0)でテストを実行し、すべてのテストがパスすることを確認しました。 ``` ℹ tests 1041 ℹ suites 75 ℹ pass 1041 ℹ fail 0 ``` 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1976c45 commit dec1611

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.mocharc.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"require": [
3-
"@babel/register"
4-
],
52
"timeout": "10000"
63
}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
"textlint/*"
5252
],
5353
"devDependencies": {
54-
"@babel/core": "^7.28.0",
55-
"@babel/preset-env": "^7.28.0",
56-
"@babel/register": "^7.27.1",
5754
"@eslint/js": "^9.30.1",
5855
"@jxa/global-type": "^1.4.0",
5956
"@jxa/run": "^1.4.0",

0 commit comments

Comments
 (0)