Skip to content
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

Remove circular deps from codebase #853

Open
jasonkuhrt opened this issue May 14, 2020 · 0 comments
Open

Remove circular deps from codebase #853

jasonkuhrt opened this issue May 14, 2020 · 0 comments
Labels
type/improve Something existing is made better, does not affect the interface (example: better error message)

Comments

@jasonkuhrt
Copy link
Member

What

  • When we investigated using rollup in tree-shake bundle step #119 it told us it discovered circular dependencies in Nexus
  • We should remove them
  • Considering this an improvement because of its affect on bundling which is user facing

Why

  • Usually means more complexity for us as developers to understand the codebase
  • Not representable in CommonJS so false sense of security in ES modules in TS, can lead to runtime bugs that only occur after transpilation
  • Makes bundling harder if not impossible, for example rollup tries to inline all code into a single closure.

How

@jasonkuhrt jasonkuhrt added the type/improve Something existing is made better, does not affect the interface (example: better error message) label May 14, 2020
@jasonkuhrt jasonkuhrt mentioned this issue May 15, 2020
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/improve Something existing is made better, does not affect the interface (example: better error message)
Projects
None yet
Development

No branches or pull requests

1 participant