Compare commits

...

3 Commits

Author SHA1 Message Date
chenjiahan
c25edf88e4 docs(@vant/cli): changelog v2.11.6 2022-04-28 15:39:20 +08:00
chenjiahan
e61aa5eebe chore: release @vant/cli@2.11.6 2022-04-28 15:38:13 +08:00
张雨涵
2744eaabf9
feat(cli:babel-loader): cli2.x add pnpm support (#10548)
* feat(cli:babel-loader): cli2.x add pnpm support

#10483

* fix(cli:babel-loader): fix regular errors

after inspection,
/node_modules(\/\.pnpm)?\/(?!(@vant\/cli))/ cannot be used normally under pnpm,
so use /^node_modules(\/\.pnpm)?\/(?!(@vant\/cli))/
2022-04-28 15:36:54 +08:00
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
# 更新日志
## v2.11.6
`2022-04-28`
- 支持 pnpm。
## v2.11.5
`2022-02-07`

View File

@ -1,6 +1,6 @@
{
"name": "@vant/cli",
"version": "2.11.5",
"version": "2.11.6",
"description": "",
"main": "lib/index.js",
"typings": "lib/index.d.ts",

View File

@ -84,7 +84,7 @@ export const baseConfig: WebpackConfig = {
},
{
test: /\.(js|ts|jsx|tsx)$/,
exclude: /node_modules\/(?!(@vant\/cli))/,
exclude: /^node_modules(\/\.pnpm)?\/(?!(@vant\/cli))/,
use: [CACHE_LOADER, 'babel-loader'],
},
{