feat(vue-loader): import SFCs from dependencies

This commit is contained in:
Clark Du 2018-05-04 17:00:46 +01:00
parent fe30ef3525
commit bd97faec59
No known key found for this signature in database
GPG Key ID: 32CBD8CD478AF898

View File

@ -139,7 +139,10 @@ export default class WebpackBaseConfig {
},
{
test: /\.jsx?$/,
exclude: /node_modules/,
exclude: file => (
/node_modules/.test(file) &&
!/\.vue\.js/.test(file)
),
use: perfLoader.pool('js', {
loader: 'babel-loader',
options: this.getBabelOptions()