diff --git a/packages/taro-cli/src/mini/index.ts b/packages/taro-cli/src/mini/index.ts index 920423df1cb5..fac9b46321f6 100644 --- a/packages/taro-cli/src/mini/index.ts +++ b/packages/taro-cli/src/mini/index.ts @@ -92,7 +92,9 @@ function readQuickAppManifest () { export async function build (appPath: string, { watch, type = BUILD_TYPES.WEAPP, envHasBeenSet = false, port, release }: IBuildOptions, customBuildData: Partial | null | undefined, builder: Builder) { const buildData = setBuildData(appPath, type, customBuildData) const isQuickApp = type === BUILD_TYPES.QUICKAPP - await checkCliAndFrameworkVersion(appPath, type) + if (type !== BUILD_TYPES.PLUGIN) { + await checkCliAndFrameworkVersion(appPath, type) + } process.env.TARO_ENV = type if (!envHasBeenSet) { setIsProduction(process.env.NODE_ENV === 'production' || !watch)