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

misc(build): convert to ES modules #13967

Merged
merged 14 commits into from
May 6, 2022
Merged

misc(build): convert to ES modules #13967

merged 14 commits into from
May 6, 2022

Conversation

connorjclark
Copy link
Collaborator

ref #12689

@connorjclark connorjclark requested a review from a team as a code owner May 5, 2022 18:44
@connorjclark connorjclark requested review from adamraine and removed request for a team May 5, 2022 18:44
build/.eslintrc.cjs Outdated Show resolved Hide resolved
build/build-report.js Outdated Show resolved Hide resolved
build/gh-pages-app.js Show resolved Hide resolved
tsconfig-base.json Outdated Show resolved Hide resolved
"**/*.js",
"../types/global-lh.d.ts",
],
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brendankenny any notes?

Copy link
Member

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

Copy link
Collaborator Author

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

Copy link
Member

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>
build/build-bundle.js Outdated Show resolved Hide resolved
build/tsconfig.json Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants