Skip to content

Replace various dependencies with lighter/faster ones #772

@43081j

Description

@43081j

There's various places in this repo we can drop in alternative dependencies or use built-in functionality.

Not all packages here are publicly published/used but we may as well still trim the dependency tree down if its easy enough to do so.

playground

  • Switch from express to polka
    • We don't use any of the functionality of express other than ability to run middleware, and polka is faster
    • branch

e2e-tests

  • Switch from axios to built-in fetch for communicating with the sentry API

monorepo

  • Switch from rimraf to premove for cleaning build outputs
    • Much smaller to install. We could also just fs.rm them but would need a script for that rather than a CLI
    • branch
  • Switch from npm-run-all to npm-run-all2
    • An actively maintained fork with security updates, etc
    • branch

bundler-plugin-core

  • Switch from find-up to empathic
    • Faster, smaller, and de-dupes better in wider dependency trees since it makes many packages redundant (various find-*-up packages)
    • branch

If these are of any interest to you, let me know and i will publish them as PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions