Skip to content

chore: viteの警告が出ないようにする#4

Merged
Hiroshiba merged 6 commits intoVOICEVOX:masterfrom
sevenc-nanashi:chore/no-vite-warning
Oct 30, 2025
Merged

chore: viteの警告が出ないようにする#4
Hiroshiba merged 6 commits intoVOICEVOX:masterfrom
sevenc-nanashi:chore/no-vite-warning

Conversation

@sevenc-nanashi
Copy link
Member

内容

動的インポートでViteの警告が出ないようにします。

関連 Issue

(なし)

スクリーンショット・動画など

(なし)

その他

(なし)

@Hiroshiba Hiroshiba requested a review from Copilot October 30, 2025 14:08
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よくわからないけどこのファイルの変更は不要っぽいかも
ちょっとAI君に修正してもらってみます!!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot宛にコメント書こうとしたらwarningが。。
copilot君の権限的に、他の人のPRへ僕からメンションはできないのかな。しゃーない!

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あ〜多分prettier -w .をかけた時のやつですね…

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the module loading strategy in NodeDictionaryLoader to use dynamic imports instead of static imports, and updates the NOTICE.md file formatting to use proper Markdown syntax.

  • Replaced static imports of fs and zlib with a dynamic module loading system using import()
  • Introduced a caching mechanism for dynamically loaded modules
  • Reformatted NOTICE.md to use standard Markdown headings and list syntax

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/loader/NodeDictionaryLoader.js Refactored to use dynamic imports with caching instead of static imports for fs and zlib modules
NOTICE.md Updated formatting to use proper Markdown syntax for headings, lists, and improved spacing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

});
});
},
);
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Promise rejection is not handled. If either module fails to load, the callback will never be called, leaving the operation hanging. Add a .catch() handler that calls callback(err).

Suggested change
);
).catch((err) => callback(err));

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot君のレビュー、ほかはともかくこれは導入しても良いのかもしれない

まあでもimportエラーだけは実行時エラーでも良い気もしないでもない。
以前はそうだったはずだろうし。

んーー名無し。さんてきにどっちでも良さそうだったらスルーで良さそう!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一応入れておきました。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

copilot君のレビューでなんか良さそうなのあったら適用しても良さそう。
んでマージして頂ければ!!

});
});
},
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot君のレビュー、ほかはともかくこれは導入しても良いのかもしれない

まあでもimportエラーだけは実行時エラーでも良い気もしないでもない。
以前はそうだったはずだろうし。

んーー名無し。さんてきにどっちでも良さそうだったらスルーで良さそう!

@sevenc-nanashi
Copy link
Member Author

マージ権限がないっぽいです。

@Hiroshiba
Copy link
Member

あそうか、preview-pages入ってないんだった。
マージします!

@Hiroshiba Hiroshiba merged commit d00b02d into VOICEVOX:master Oct 30, 2025
1 check passed
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