Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commitc4bba2e

Browse files
committed
[fix] trigger reload on .env change
1 parentad95e1d commitc4bba2e

File tree

1 file changed

+4
-2
lines changed
  • src/lib/client/adapters/webcontainer

1 file changed

+4
-2
lines changed

‎src/lib/client/adapters/webcontainer/index.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ async function _create(stubs) {
164164
constwill_restart=new_stubs.some(
165165
(stub)=>
166166
stub.type==='file'&&
167-
(stub.name==='/vite.config.js'||stub.name==='/svelte.config.js')
167+
(stub.name==='/vite.config.js'||
168+
stub.name==='/svelte.config.js'||
169+
stub.name==='/.env')
168170
);
169171
constpromise=will_restart
170172
?newPromise((fulfil,reject)=>{
@@ -200,7 +202,7 @@ async function _create(stubs) {
200202

201203
// Also trigger a reload of the iframe in case new files were added / old ones deleted,
202204
// because that can result in a broken UI state
203-
returnwill_restart||vite_error||old.size||new_stubs.length;
205+
returnwill_restart||vite_error||!!old.size||!!new_stubs.length;
204206
}
205207

206208
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp