Skip to content

Commit e2f8a51

Browse files
chore: apply automated fixes
1 parent ea9343f commit e2f8a51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugin/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,24 @@ const unplugin = createUnplugin<UnwasmPluginOptions>((opts) => {
9191
this.addWatchFile(id);
9292

9393
const buff = await fs.readFile(id);
94-
return buff.toString('binary');
94+
return buff.toString("binary");
9595
},
9696
transform(code, id) {
9797
if (!id.endsWith(".wasm")) {
9898
return;
9999
}
100100

101-
const buff = Buffer.from(code, 'binary')
101+
const buff = Buffer.from(code, "binary");
102102
const name = `wasm/${basename(id, ".wasm")}-${sha1(buff)}.wasm`;
103103
const parsed = parse(name, buff);
104104

105-
const asset = assets[name] = <WasmAsset>{
105+
const asset = (assets[name] = <WasmAsset>{
106106
name,
107107
id,
108108
source: buff,
109109
imports: parsed.imports,
110110
exports: parsed.exports,
111-
};
111+
});
112112

113113
return {
114114
code: getWasmBinding(asset, opts),

0 commit comments

Comments
 (0)