File tree 1 file changed +4
-2
lines changed
src/lib/client/adapters/webcontainer
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ async function _create(stubs) {
164
164
const will_restart = new_stubs . some (
165
165
( stub ) =>
166
166
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' )
168
170
) ;
169
171
const promise = will_restart
170
172
? new Promise ( ( fulfil , reject ) => {
@@ -200,7 +202,7 @@ async function _create(stubs) {
200
202
201
203
// Also trigger a reload of the iframe in case new files were added / old ones deleted,
202
204
// because that can result in a broken UI state
203
- return will_restart || vite_error || old . size || new_stubs . length ;
205
+ return will_restart || vite_error || ! ! old . size || ! ! new_stubs . length ;
204
206
}
205
207
206
208
/**
You can’t perform that action at this time.
0 commit comments