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

Set compile string to output language extension #35

Conversation

koddsson
Copy link
Contributor

Hey @danielholmes 👋

I think passing ts down to RelayCompilerRunner.compile when compiling TypeScript and passing js when compiling JavaScript is needed when working with different languages. I had some errors at least when trying to use TypeScript and this fixes it. I also added the flow type for the plugin interface where applicable since I saw that it was currently being typed as any.

Ref: #33

@@ -104,6 +105,8 @@ class RelayCompilerWebpackPlugin {
sourceParserName,
languagePlugin: language
})

this.languagePlugin = language
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wasn't obvious to me how I should pass the language output extension down to compile but I figured I'd just do it like this for now.

@koddsson koddsson changed the base branch from master to 2.0.0 December 11, 2018 14:09
@danielholmes
Copy link
Collaborator

@koddsson thank you!

@koddsson koddsson deleted the set-compile-string-to-output-language-extension branch December 12, 2018 09:55
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.

2 participants