Skip to content

Add .jsx and .tsx to resolve.extensions #2862

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

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

rossta
Copy link
Member

@rossta rossta commented Jan 5, 2021

The following extensions are currently matched by the default rules for babel-loader.

test: /\.(js|jsx|mjs|ts|tsx)?(\.erb)?$/,

This PR adds .jsx and .tsx to the default resolve.extensions to bring parity.

Fixes #2853 #2861

These extensions are currently matched by the default rules for
babel-loader
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.

.tsx files not resolving by default with webpacker 6.0.0-beta.2
2 participants