Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

React: use .jsx extension for component files #367

Merged
merged 1 commit into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const mainJsChunkConfig = buildMode => {
config: path.resolve(__dirname, '../config/'),
src: path.resolve(__dirname, '../src/'),
},
extensions: ['.js', '.jsx'],
},
plugins: addJsOptimizePlugins(buildMode, [
new webpack.NormalModuleReplacementPlugin(/mapbox-gl--ENV/, function(resource) {
Expand Down Expand Up @@ -141,7 +142,7 @@ const mainJsChunkConfig = buildMode => {
},
],
}, {
test: /\.js$/,
test: /\.(js|jsx)$/,
use: [
{
loader: 'babel-loader',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.