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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 7 deletions

View File

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

View File

@ -71,7 +71,7 @@
"@babel/preset-typescript": "^7.3.3", "@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.16", "@types/jest": "^24.0.16",
"@vant/cli": "^1.0.4", "@vant/cli": "^1.0.4",
"@vant/doc": "^2.5.1", "@vant/doc": "^2.5.2",
"@vant/eslint-config": "^1.2.5", "@vant/eslint-config": "^1.2.5",
"@vant/markdown-loader": "^2.2.0", "@vant/markdown-loader": "^2.2.0",
"@vant/markdown-vetur": "^1.0.0", "@vant/markdown-vetur": "^1.0.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@vant/doc", "name": "@vant/doc",
"version": "2.5.1", "version": "2.5.2",
"description": "vant document template", "description": "vant document template",
"main": "./lib/index.js", "main": "./lib/index.js",
"publishConfig": { "publishConfig": {

View File

@ -1194,10 +1194,10 @@
shelljs "^0.8.2" shelljs "^0.8.2"
signale "^1.4.0" signale "^1.4.0"
"@vant/doc@^2.5.1": "@vant/doc@^2.5.2":
version "2.5.1" version "2.5.2"
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.1.tgz#7c17e2dd20533f6359b526c20c75eb27a031cfb7" resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.2.tgz#fbc51239eab5fcbeb31aac67fe285378238c1ba7"
integrity sha512-Ff5ach0ZR0tCcfGq0pnjsa2OPhg1zZ3zGE5OKMU3uFrld9sRXFqiB1TL4WpqtGmIA7UqmBVS+4MNt0Lo62knMg== integrity sha512-Pz+bNXBv09Sr7T8G2gNejp6XRsDsHqdMMr/O/cq9ylrNfQToPS+cPkerjf296b2b8/aLDGO9nVNuA9Gu84A2Qw==
"@vant/eslint-config@^1.2.5": "@vant/eslint-config@^1.2.5":
version "1.2.5" version "1.2.5"