File tree 1 file changed +2
-2
lines changed
tools/rollup-plugin-emscripten/src
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 = {}) {
38
38
async generateBundle ( options , chunkMap ) {
39
39
assert ( options . dir , 'Emscripten plugin requires dir option.' ) ;
40
40
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 ) ) {
42
42
for ( const [ id , module ] of Object . entries ( chunk . modules ) ) {
43
43
if ( path . basename ( id ) === pluginOptions . input ) {
44
44
const tmpWasm = tmp . tmpNameSync ( { postfix : '.wasm' } ) ;
@@ -214,7 +214,7 @@ function getExportInfo(ast, variableNames) {
214
214
function getUnusedExports ( ast , exports ) {
215
215
const unusedExports = new Set ( ) ;
216
216
const varExports = new Map ( ) ;
217
- for ( const [ key , value ] of exports ) {
217
+ for ( const value of exports . values ( ) ) {
218
218
varExports . set ( value . varName , value ) ;
219
219
unusedExports . add ( value . wasmName ) ;
220
220
}
You can’t perform that action at this time.
0 commit comments