Skip to content

Commit

Permalink
removed unused logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed May 8, 2024
1 parent 3d5a13e commit aa0db6f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/actions/handleNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,34 +319,11 @@ const handleNamesForChangedFile = (
* "caminho/do/arquivo.jsx": [{MyVar: "MyVar_newName"}, {MyVar2: "MyVar2_nameName"}]
* }
*/
// const exportsOrganizerData = getExportsOrganizer(fileSchemas);
// fileSchemas = exportsOrganizerData.fileSchemas;
// const exportsOrganizer = exportsOrganizerData.exportsOrganizer;

// fileSchemas.forEach((fileSchema, fileSchemaIndex) => {
// console.log("File:", fileSchema.filePath);

let fileContent = changedFileSchema?.content || "";
const exportsData = getExportsOrganizer(fileContent);
// const exportsData = changedFileSchema.exports;
console.log("0", exportsData);
console.log("1", changedFileSchema.previousExports);
let fileExportsObj = exportsData.fileExportsOrganizer;
console.log("A", fileExportsObj);
const fileExportsName = exportsData.exports;
console.log("B", fileExportsName);

// Faz a troca de nomes caso o item sendo exportado tenha recebido um outro nome
// anteriormente
// const previousExportsKeys = Object.keys(changedFileSchema.previousExports);
// fileExportsName.forEach((exportItemName, index) => {
// if (previousExportsKeys.includes(exportItemName)) {
// fileExportsName[index] =
// changedFileSchema.previousExports[exportItemName];
// }
// });

// console.log("B Updated", fileExportsName);

// Checa se o nome dos exports do arquivo já existem no bundle
// Exports do arquivo atual
Expand Down

0 comments on commit aa0db6f

Please sign in to comment.