From ed61d48194e22d11483a5c06473542f918b16701 Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Wed, 8 May 2024 17:05:21 -0300 Subject: [PATCH] fix issue with createLoaderWidget flag --- lib/actions/createSuspenseWidget.js | 4 ++++ lib/actions/handleNames.js | 4 ---- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/actions/createSuspenseWidget.js b/lib/actions/createSuspenseWidget.js index 5cad864..159f92c 100644 --- a/lib/actions/createSuspenseWidget.js +++ b/lib/actions/createSuspenseWidget.js @@ -16,6 +16,10 @@ const createSuspenseWidget = (opts) => { // console.log(config); // console.log(opts); + if (!config?.options?.createLoaderWidget) { + return; + } + // Configurable: Cria somente se "createLoaderWidget" for true if (config.options.createLoaderWidget) { const account = diff --git a/lib/actions/handleNames.js b/lib/actions/handleNames.js index fca5fd2..dec1a9b 100644 --- a/lib/actions/handleNames.js +++ b/lib/actions/handleNames.js @@ -239,7 +239,6 @@ const handleNamesForChangedFile = ( previousTakenName = [], ) => { // reset_name_counter(); - // let tempBundle = ""; // Lista de nomes de exports já usados em toda a aplicação const takenNames = [...previousTakenName]; @@ -315,9 +314,6 @@ const handleNamesForChangedFile = ( // Adiciona os exports para o esquema do arquivo fileSchemas[changedFileSchemaIndex].exports = fileExportsObj; - // tempBundle += fileContent; - // }); - return fileSchemas; }; diff --git a/package.json b/package.json index 1e7afe6..4f3c617 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alem", "description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.", - "version": "1.1.0", + "version": "1.1.1", "main": "main.js", "types": "index.d.ts", "author": "Wenderson Pires - wendersonpires.near",