We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4cc5d commit d2a5d25Copy full SHA for d2a5d25
src/lib/client/adapters/webcontainer/index.js
@@ -274,11 +274,8 @@ function convert_stubs_to_tree(stubs, depth = 1) {
274
/** @param {import('$lib/types').FileStub} file */
275
function to_file(file) {
276
// special case
277
- if (file.name === '/src/app.html') {
278
- const contents = file.contents.replace(
279
- '</head>',
280
- '<script type="module" src="/src/__client.js"></script></head>'
281
- );
+ if (file.name === '/src/app.html' || file.name === '/src/error.html') {
+ const contents = file.contents + '<script type="module" src="/src/__client.js"></script>';
282
283
return {
284
file: { contents }
0 commit comments