chore(scripts): remove useless requires (#219)

This commit is contained in:
朱金濠 2019-10-12 11:28:20 +08:00 committed by Evan You
parent e68321eac0
commit 4a100828de
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,6 @@ yarn build core --formats cjs
const fs = require('fs-extra') const fs = require('fs-extra')
const path = require('path') const path = require('path')
const zlib = require('zlib')
const chalk = require('chalk') const chalk = require('chalk')
const execa = require('execa') const execa = require('execa')
const { gzipSync } = require('zlib') const { gzipSync } = require('zlib')

View File

@ -17,8 +17,7 @@ __DEV__=false yarn dev
*/ */
const execa = require('execa') const execa = require('execa')
const { targets, fuzzyMatchTarget } = require('./utils') const { fuzzyMatchTarget } = require('./utils')
const args = require('minimist')(process.argv.slice(2)) const args = require('minimist')(process.argv.slice(2))
const target = args._.length ? fuzzyMatchTarget(args._)[0] : 'vue' const target = args._.length ? fuzzyMatchTarget(args._)[0] : 'vue'
const formats = args.formats || args.f const formats = args.formats || args.f