Skip to content

Commit

Permalink
fix(cli): 插件编译失败,close #5149
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Dec 26, 2019
1 parent 71ff663 commit 665beaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/taro-cli/src/mini/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function readQuickAppManifest () {
export async function build (appPath: string, { watch, type = BUILD_TYPES.WEAPP, envHasBeenSet = false, port, release }: IBuildOptions, customBuildData: Partial<IBuildData> | 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)
Expand Down

0 comments on commit 665beaf

Please sign in to comment.