Skip to content

Commit f771edc

Browse files
meteorlxysergeylarionov-upwork
authored andcommitted
fix($core): resolve jsx files by default (close vuejs#2058) (vuejs#2059)
1 parent 537bc2c commit f771edc

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)