Skip to content

Commit

Permalink
fix($core): resolve jsx files by default (close #2058) (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Feb 1, 2020
1 parent 8df4ed7 commit f083d8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = function createBaseConfig (context, isServer) {
const libDir = path.join(__dirname, '..')
config.module
.rule('js')
.test(/\.js$/)
.test(/\.jsx?$/)
.exclude.add(filePath => {
// Always transpile lib directory
if (filePath.startsWith(libDir)) {
Expand Down

0 comments on commit f083d8d

Please sign in to comment.