Revert "chore: prefer .tsx? files over .jsx? file extensions (#3909)"

This reverts commit c3b6519a11.
This commit is contained in:
Haoqun Jiang
2019-05-26 00:08:52 +08:00
parent d6ce9c2fe9
commit 19d50b9ea5

View File

@@ -15,8 +15,7 @@ module.exports = (api, options) => {
config.resolve
.extensions
.prepend('.ts')
.prepend('.tsx')
.merge(['.ts', '.tsx'])
const tsRule = config.module.rule('ts').test(/\.ts$/)
const tsxRule = config.module.rule('tsx').test(/\.tsx$/)