Skip to content

Improve bundle size by replacing detective-typescript #10825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 20, 2023

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Mar 20, 2023

This PR improves the bundle size by replacing detective-typescript.

detective-typescript ships typescript as a dependency which means that the bundle size went up by at least ~65MB.

Thank you @bradlc for noticing this!

@RobinMalfait RobinMalfait force-pushed the feat/improve-detective-bundle-size branch 3 times, most recently from 2c3a362 to eb3ea1f Compare March 20, 2023 17:00
We are not parsing the code but just trying to pluck out the
dependencies used via `import` and `require`.
@RobinMalfait RobinMalfait force-pushed the feat/improve-detective-bundle-size branch from eb3ea1f to dc82d33 Compare March 20, 2023 17:05
@RobinMalfait RobinMalfait force-pushed the feat/improve-detective-bundle-size branch from dc82d33 to f3684b5 Compare March 20, 2023 17:12
This won't be the prettiest if it happens, but at least we are not
swallowing errors which should make bugs be easier to discover.

See previous commit for an example... 😅
@RobinMalfait RobinMalfait merged commit e046a37 into master Mar 20, 2023
@RobinMalfait RobinMalfait deleted the feat/improve-detective-bundle-size branch March 20, 2023 17:30
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