6 find "$folder" -type f
-name '*.map' -exec rm -f {} +
7 find "$folder" -type f
-name '*.js' -exec sed -e '/\/\/# sourceMappingURL=/d' -i.bak
{} +
8 find "$folder" -type f
-name '*.css' -exec sed -e '/\/\*# sourceMappingURL=/d' -i.bak
{} +
9 find "$folder" -type f
-name '*.bak' -delete
11 printf "🧹 Sourcemap files removed and references cleaned\n"
14 if [[ -n "${RELEASE:-}" ]]; then