File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,24 +91,24 @@ const unplugin = createUnplugin<UnwasmPluginOptions>((opts) => {
91
91
this . addWatchFile ( id ) ;
92
92
93
93
const buff = await fs . readFile ( id ) ;
94
- return buff . toString ( ' binary' ) ;
94
+ return buff . toString ( " binary" ) ;
95
95
} ,
96
96
transform ( code , id ) {
97
97
if ( ! id . endsWith ( ".wasm" ) ) {
98
98
return ;
99
99
}
100
100
101
- const buff = Buffer . from ( code , ' binary' )
101
+ const buff = Buffer . from ( code , " binary" ) ;
102
102
const name = `wasm/${ basename ( id , ".wasm" ) } -${ sha1 ( buff ) } .wasm` ;
103
103
const parsed = parse ( name , buff ) ;
104
104
105
- const asset = assets [ name ] = < WasmAsset > {
105
+ const asset = ( assets [ name ] = < WasmAsset > {
106
106
name,
107
107
id,
108
108
source : buff ,
109
109
imports : parsed . imports ,
110
110
exports : parsed . exports ,
111
- } ;
111
+ } ) ;
112
112
113
113
return {
114
114
code : getWasmBinding ( asset , opts ) ,
You can’t perform that action at this time.
0 commit comments