Skip to content

misc(build): convert to ES modules#13967

Merged
connorjclark merged 14 commits into
masterfrom
esm-build
May 6, 2022
Merged

misc(build): convert to ES modules#13967
connorjclark merged 14 commits into
masterfrom
esm-build

Conversation

@connorjclark

Copy link
Copy Markdown
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
Comment thread build/.eslintrc.cjs Outdated
Comment thread build/build-report.js Outdated
Comment thread build/gh-pages-app.js
Comment thread tsconfig-base.json Outdated
Comment thread build/tsconfig.json Outdated
"**/*.js",
"../types/global-lh.d.ts",
],
}

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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>
Comment thread build/build-bundle.js Outdated
Comment thread build/tsconfig.json Outdated
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