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
fix: webpack-chain types #2765
fix: webpack-chain types #2765
Conversation
packages/umi-types/config.d.ts
Outdated
externalWhitelist?: WhitelistOption[]; | ||
} | ||
export type IExportSSROpts = | ||
| { |
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.
@chenshuai2144 prettier format 下会在前面加个 |
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.
这个加了有影响吗?
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.
prettier/prettier#2069 ,会有影响
Pull Request Test Coverage Report for Build 4479
💛 - Coveralls |
@@ -8,7 +8,7 @@ import nodeExternals from 'webpack-node-externals'; | |||
const debug = require('debug')('umi-build-dev:getWebpackConfig'); | |||
|
|||
interface IOpts { | |||
ssr?: boolean | IExportSSROpts; |
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.
ssr 不允许 boolean?
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.
可以,写到一个 type 里了
| { | ||
externalWhitelist?: WhitelistOption[]; | ||
} | ||
| boolean; | ||
|
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.
@sorrycc 写这里了
* fix: webpack-chain types * fix: types
Close #2752.