build: fix vant/doc babel config (#4216)

This commit is contained in:
neverland
2019-08-24 10:53:12 +08:00
committed by GitHub
parent f630b2f6d2
commit a05a03b8b2
4 changed files with 13 additions and 7 deletions

View File

@@ -40,7 +40,13 @@ module.exports = {
{
test: /\.(js|ts|tsx)$/,
exclude: /node_modules/,
use: 'babel-loader'
use: {
loader: 'babel-loader',
// enable sub-packages to find babel config
options: {
rootMode: 'upward'
}
}
},
{
test: /\.less$/,