mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-24 23:49:14 +08:00
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))/
This commit is contained in:
parent
b42e674042
commit
2744eaabf9
@ -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'],
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user