-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
misc(build): convert to ES modules #13967
Conversation
build/tsconfig.json
Outdated
"**/*.js", | ||
"../types/global-lh.d.ts", | ||
], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brendankenny any notes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's it for? I'm surprised anything changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we import treemap ui strings and the locales module in build-treemap.js
and that requires various types to exist on the global scope otherwise tsc fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW {"path": "./treemap/"},
in the root tsconfig.json
would have also fixed it, though it's not necessarily bad to have a tsconfig for this folder too
Co-authored-by: Adam Raine <6752989+adamraine@users.noreply.github.com>
ref #12689