Skip to content

Commit 01247d5

Browse files
committed
lint
1 parent af405c3 commit 01247d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/rollup-plugin-emscripten/src/index.mjs

+2-2
Original file line numberDiff line numberDiff 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) {
214214
function 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
}

0 commit comments

Comments
 (0)