Skip to content

Commit f083d8d

Browse files
authoredFeb 1, 2020
fix($core): resolve jsx files by default (close #2058) (#2059)
1 parent 8df4ed7 commit f083d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/@vuepress/core/lib/node/webpack/createBaseConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module.exports = function createBaseConfig (context, isServer) {
135135
const libDir = path.join(__dirname, '..')
136136
config.module
137137
.rule('js')
138-
.test(/\.js$/)
138+
.test(/\.jsx?$/)
139139
.exclude.add(filePath => {
140140
// Always transpile lib directory
141141
if (filePath.startsWith(libDir)) {

0 commit comments

Comments
 (0)
Please sign in to comment.