File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/rollup-plugin-emscripten/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default async function emscriptenPlugin(pluginOptions = {}) {
3838 async generateBundle ( options , chunkMap ) {
3939 assert ( options . dir , 'Emscripten plugin requires dir option.' ) ;
4040 assert ( exportInfo , 'Failed to find Emscripten output.' ) ;
41- for ( const [ file , chunk ] of Object . entries ( chunkMap ) ) {
41+ for ( const [ _file , chunk ] of Object . entries ( chunkMap ) ) {
4242 for ( const [ id , module ] of Object . entries ( chunk . modules ) ) {
4343 if ( path . basename ( id ) === pluginOptions . input ) {
4444 const tmpWasm = tmp . tmpNameSync ( { postfix : '.wasm' } ) ;
@@ -214,7 +214,7 @@ function getExportInfo(ast, variableNames) {
214214function getUnusedExports ( ast , exports ) {
215215 const unusedExports = new Set ( ) ;
216216 const varExports = new Map ( ) ;
217- for ( const [ key , value ] of exports ) {
217+ for ( const value of exports . values ( ) ) {
218218 varExports . set ( value . varName , value ) ;
219219 unusedExports . add ( value . wasmName ) ;
220220 }
You can’t perform that action at this time.
0 commit comments