<!-- Love javascript-obfuscator? Please consider supporting our collective: 👉 https://opencollective.com/javascript-obfuscator/donate --> <!--- Provide a general summary of the issue in the Title above --> I created a js script that goes inside my sveltekits build folder and tries to obfuscate any js file that it can find ## Expected Behavior <!--- Tell us what should happen --> Even though it works in preview mode locally it doesn't work in production on a real server ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> The Whole app crashes ## App Url <!--- Provide a link to a live example, or an unambiguous set of steps to --> [e-matrex.com](url) <!--- reproduce this bug. Include code to reproduce, if relevant --> ## Obfucation Code : ``` import fs from 'fs'; import path from 'path'; import obfuscator from 'javascript-obfuscator'; const buildDir = 'build'; function obfuscateFiles(dir) { fs.readdirSync(dir).forEach((file) => { const filePath = path.join(dir, file); if ( filePath.includes('/server/') || filePath.includes('/node_modules/') || filePath.includes('/.svelte-kit/') ) { return; } if (fs.statSync(filePath).isDirectory()) { obfuscateFiles(filePath); } else if (file.endsWith('.js')) { console.log(`Obfuscating: ${filePath}`); const code = fs.readFileSync(filePath, 'utf8'); const obfuscatedCode = obfuscator .obfuscate(code, { compact: true, controlFlowFlattening: true }) .getObfuscatedCode(); fs.writeFileSync(filePath, obfuscatedCode, 'utf8'); } }); } obfuscateFiles(buildDir); console.log('JavaScript obfuscation completed.'); ``` ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Obfuscator version used: 4.1.1 * Node version used: Latest LTS # Stack trace <!--- Include stack trace -->  ## Minimal working example that will help to reproduce issue <!--- Include code -->