diff --git a/examples/mako/package.json b/examples/mako/package.json index 9ed166a8..90ba4c3b 100644 --- a/examples/mako/package.json +++ b/examples/mako/package.json @@ -1,6 +1,6 @@ { "scripts": { - "build": "OKAM=@alipay/umi-bundler-okam father build", + "build": "father build", "build:no-clean": "father build --no-clean", "dev": "father dev", "dev:no-clean": "father dev --no-clean", diff --git a/src/builder/bundle/index.ts b/src/builder/bundle/index.ts index f13ade76..d885d4b8 100644 --- a/src/builder/bundle/index.ts +++ b/src/builder/bundle/index.ts @@ -68,7 +68,7 @@ async function bundle(opts: IBundleOpts): Promise { chainWebpack: config.chainWebpack, define: config.define, devtool: config.sourcemap && ('source-map' as DevTool), - externals: config.externals || {}, + externals: config.externals, outputPath: config.output.path, // postcss config diff --git a/src/builder/bundle/utils.ts b/src/builder/bundle/utils.ts deleted file mode 100644 index a855e24f..00000000 --- a/src/builder/bundle/utils.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { chalk, lodash } from '@umijs/utils'; -import path from 'path'; -import { logger } from '../../utils'; -import type { IBundleConfig } from '../config'; - -// workaround for combine continuous onBuildComplete log in watch mode -export const logStatus = (config: IBundleConfig) => { - lodash.debounce( - () => - logger.info( - `Bundle from ${chalk.yellow(config.entry)} to ${chalk.yellow( - path.join(config.output.path, config.output.filename), - )}`, - ), - 100, - { leading: true, trailing: false }, - ); -};