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.

Commita94a479

Browse files
authored
rename boot.cjs to unzip.cjs (#73)
* rename boot.cjs to unzip.cjs* remove old file
1 parentd2d4c2a commita94a479

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

‎scripts/create-common-bundle/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ fs.writeFileSync(`src/lib/client/adapters/common/common.zip`, out);
6060

6161
// bundle adm-zip so we can use it in the webcontainer
6262
esbuild.buildSync({
63-
entryPoints:[fileURLToPath(newURL('./boot.js',import.meta.url))],
63+
entryPoints:[fileURLToPath(newURL('./unzip.js',import.meta.url))],
6464
bundle:true,
6565
platform:'node',
6666
minify:true,
67-
outfile:'src/lib/client/adapters/common/boot.cjs',
67+
outfile:'src/lib/client/adapters/common/unzip.cjs',
6868
format:'cjs'
6969
});
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/boot.cjs
1+
/unzip.cjs
22
/common.zip

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
importzippedfrom'./common.zip?url';
2-
importbootfrom'./boot.cjs?url';
2+
importunzipfrom'./unzip.cjs?url';
33

44
asyncfunctionload(){
55
constresult=awaitPromise.all([
66
fetch(zipped).then((r)=>r.arrayBuffer()),
7-
fetch(boot).then((r)=>r.text())
7+
fetch(unzip).then((r)=>r.text())
88
]);
99

1010
return{
1111
zipped:result[0],
12-
boot:result[1]
12+
unzip:result[1]
1313
};
1414
}
1515

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ export async function create(stubs) {
1414

1515
constcommon=awaitready;
1616
tree['common.zip']=file(newUint8Array(common.zipped));
17-
tree['boot.cjs']=file(common.boot);
17+
tree['unzip.cjs']=file(common.unzip);
1818

1919
constvm=awaitWebContainer.boot();
2020
awaitvm.loadFiles(tree);
2121

22-
constboot=awaitvm.run(
22+
constunzip=awaitvm.run(
2323
{
2424
command:'node',
25-
args:['boot.cjs']
25+
args:['unzip.cjs']
2626
},
2727
{
28-
stderr:(data)=>console.error(`[boot]${data}`)
28+
stderr:(data)=>console.error(`[unzip]${data}`)
2929
}
3030
);
3131

32-
constcode=awaitboot.onExit;
32+
constcode=awaitunzip.onExit;
3333

3434
if(code!==0){
3535
thrownewError('Failed to initialize WebContainer');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp