Merge pull request #2696 from ArStah/autoimport-jsx

Support autoimport of .jsx files
This commit is contained in:
Sébastien Chopin 2018-01-26 15:10:49 +01:00 committed by GitHub
commit f0a3791acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
hints: this.options.dev ? false : 'warning'
},
resolve: {
extensions: ['.js', '.json', '.vue'],
extensions: ['.js', '.json', '.vue', '.jsx'],
alias: {
'~': join(this.options.srcDir),
'~~': join(this.options.rootDir),