Skip to content

refactor: inline parse#100

Open
hyperz111 wants to merge 20 commits intotinylibs:mainfrom
hyperz111:inline-parse
Open

refactor: inline parse#100
hyperz111 wants to merge 20 commits intotinylibs:mainfrom
hyperz111:inline-parse

Conversation

@hyperz111
Copy link
Copy Markdown

@hyperz111 hyperz111 commented Mar 26, 2026

Some points in here:

  • Maybe we can remove the dist/LICENSES.txt file after this.
  • JavaScript output file size is now smaller.
  • Only tree-shaking the Windows logic.

Before:

ℹ Build start
ℹ Cleaning 3 files
ℹ dist/main.mjs    16.18 kB │ gzip: 5.16 kB
ℹ dist/main.d.mts   3.18 kB │ gzip: 1.00 kB
ℹ 2 files, total: 19.36 kB

After:

ℹ Build start
ℹ Cleaning 3 files
ℹ dist/main.mjs    8.19 kB │ gzip: 2.94 kB
ℹ dist/main.d.mts  3.18 kB │ gzip: 1.00 kB
ℹ 2 files, total: 11.32 kB

TODO

  • Try test this on Windows
  • Adding test for parser.

@hyperz111 hyperz111 marked this pull request as ready for review March 28, 2026 08:15
@hyperz111
Copy link
Copy Markdown
Author

cc @43081j

});
});

if (isWindows) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think vitest has a test.if or describe.if - something like that

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@43081j
Copy link
Copy Markdown
Member

43081j commented Apr 1, 2026

@hyperz111 FYI i pushed a small optimisation. that also dropped one of the license refs since it is now new code

ill finish reading through it this week

@hyperz111
Copy link
Copy Markdown
Author

hyperz111 commented Apr 10, 2026

@43081j, maybe you have time with this now?

@43081j
Copy link
Copy Markdown
Member

43081j commented Apr 11, 2026

i'll take another look this weekend 👍

@43081j 43081j self-assigned this Apr 11, 2026
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.

3 participants