Skip to content

fix: minifier rewrite#53

Open
luna wants to merge 5 commits into
michaeloliverx:mainfrom
luna:minifier-rewrite
Open

fix: minifier rewrite#53
luna wants to merge 5 commits into
michaeloliverx:mainfrom
luna:minifier-rewrite

Conversation

@luna
Copy link
Copy Markdown
Contributor

@luna luna commented Nov 3, 2024

Addresses #26, goes through characters individually and checks for:

  • Double quotes, we simply want to find the end of the string (next double quote that isn't escaped) and copy everything it contains
  • Forward slashes to potentially find & skip comments entirely
  • Whitespace to determine whether or not one should be placed

Goes through characters individually and checks for:
- Double quotes, we simply want to find the next double quote that is not escaped and copy everything it contains
- Forward slashes to potentially find & skip comments entirely
- Whitespace to determine whether or not one should be placed
@luna luna changed the title fix: new minifier fix: minifier rewrite Nov 3, 2024
luna added 4 commits November 4, 2024 00:09
space needs to be present if the previous character is a closing square bracket so that something like `level.players[0] [[level.thing]]();` can still be treated as a function call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant