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

(types/fix): explicit Rollup typing, fix treeshake location #371

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

agilgur5
Copy link
Collaborator

@agilgur5 agilgur5 commented Dec 14, 2019

  • treeshake was in output, but it's not a config of output :/ :/ :/
    • once explicit types were added, this was a big red underline :/ :/

Yeaaaaaaaaa so that's kind of a problem 😕 😕 😕 Related to #365 and potentially related to #171. This bug has been around for a long enough time that it's fix may cause some breakage, idk.

Related: Does the eslint config error on getters and setters? That wouldn't help with imported code, but would at least reduce unexpected errors in one's own codebase.

Also should we add some regression tests for treeshaking? It's typed correctly now, but might make sense to have a test for something like this that could be considered critical and hard to catch, idk.


I was going around adding types to builder code during #367 because type-checking would add a lot more confidence and discovered this along the way -- figured it should be extracted out as its own commit.

- treeshake was in output, but it's not a config of output :/ :/ :/
  - once explicit types were added, this was a big red underline :/ :/
@swyxio
Copy link
Collaborator

swyxio commented Dec 14, 2019

nice catch - who woulda thought that typechecking is useful for this stuff 😂

wanna make sure jared sees this so not clicking merge

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