-
-
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
Add support for 'jsx' extensions #18
Conversation
It's fairly common for people having '.jsx' extensions for their react components.
@@ -29,7 +29,7 @@ const config = { | |||
module: { | |||
loaders: [ | |||
{ | |||
test: /\.js$/, | |||
test: /\.jsx?$/, |
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.
I hope we need to add .js as well. Does this support it as well?
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.
This regex will match both .js
and .jsx
. The ?
makes the x
optional.
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.
Yes. As said by @levithomason, this pattern optionally matches the last letter "x". So it matches both ".js" and ".jsx"
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.
Super. Didn't read that. Thanks guys.
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.
Awesome!!!
Ability to dock action logger in right
Add more tests for KnobManager
fixes #18 : create react app public directory
Refactor the datastore to make further improvements.
Implement bare minimum modal component
It's fairly common for people having '.jsx' extensions for their react components.