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

Add support for 'jsx' extensions #18

Merged
merged 1 commit into from
Apr 4, 2016
Merged

Conversation

minfawang
Copy link
Contributor

It's fairly common for people having '.jsx' extensions for their react components.

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?$/,
Copy link
Member

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?

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.

http://regexr.com/3d4vm

Copy link
Contributor Author

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"

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Awesome!!!

@arunoda arunoda merged commit b7d2d00 into storybookjs:master Apr 4, 2016
ndelangen pushed a commit that referenced this pull request Apr 5, 2017
Ability to dock action logger in right
ndelangen pushed a commit that referenced this pull request Apr 5, 2017
Add more tests for KnobManager
ndelangen pushed a commit that referenced this pull request Apr 5, 2017
ndelangen pushed a commit that referenced this pull request Apr 5, 2017
fixes #18 : create react app public directory
ndelangen pushed a commit that referenced this pull request Apr 11, 2017
Refactor the datastore to make further improvements.
@shilman shilman added the misc label May 27, 2017
JReinhold added a commit that referenced this pull request May 31, 2023
ndelangen pushed a commit that referenced this pull request Feb 23, 2024
Implement bare minimum modal component
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.

4 participants