Skip to content

chore(typescript): Add support for typescript#399

Merged
jstoffan merged 1 commit intobox:masterfrom
jstoffan:typescript
Mar 20, 2020
Merged

chore(typescript): Add support for typescript#399
jstoffan merged 1 commit intobox:masterfrom
jstoffan:typescript

Conversation

@jstoffan
Copy link
Collaborator

No description provided.

@jstoffan jstoffan requested a review from a team as a code owner March 20, 2020 21:28
@@ -0,0 +1 @@
export default {};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can be removed once we start adding actual Typescript files.

{
test: ['./src/**/*.ts', './src/**/*.tsx'],
presets: [
[
Copy link
Contributor

@mingzexiao6 mingzexiao6 Mar 20, 2020

Choose a reason for hiding this comment

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

Do we need @babel/preset-react here during the transition stage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so, since it's already in the presets section. This is the overrides section for specific file types.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, but from what i understand, if you add @babel/preset-react, you can rename current react files to .ts and .tsx right now. It's useful during your transition stage.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Gotcha. I was really only looking at new files. If we find ourselves converting existing components, we should add it.

@jstoffan jstoffan merged commit 9384e60 into box:master Mar 20, 2020
@jstoffan jstoffan deleted the typescript branch March 20, 2020 23:41
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