-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: umd support mako bundler #750
Conversation
path.dirname(require.resolve('@umijs/bundler-webpack/package.json')), | ||
); | ||
|
||
const makoBundler = importLazy( | ||
// path.dirname(require.resolve('/Users/xiaoxiao/work/mako/packages/bundler-mako/package.json')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
src/builder/bundle/index.ts
Outdated
watch: opts.watch, | ||
DevServer: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devServer
}, | ||
} | ||
: {}), | ||
onBuildComplete({ isFirstCompile, close }: any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onBuildComplete 在 dev 时是不执行的,后续结合 onDevCompileDone 优化日志输出,以及 bundler-webpack 是否能统一使用 onDevCompileDone
配置变化
.fatherrc.ts
新增umd: { bundler: 'webpack' | 'mako' }
的配置项做切换环境变量
OKAM=@alipay/umi-bundler-okam 指定 mako bundler
examples/mako