Skip to content
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

Merged
merged 2 commits into from Jul 8, 2019
Merged

fix: webpack-chain types #2765

merged 2 commits into from Jul 8, 2019

Conversation

ycjcl868
Copy link
Contributor

@ycjcl868 ycjcl868 commented Jul 6, 2019

Close #2752.

externalWhitelist?: WhitelistOption[];
}
export type IExportSSROpts =
| {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenshuai2144 prettier format 下会在前面加个 |

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个加了有影响吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prettier/prettier#2069 ,会有影响

@coveralls
Copy link

coveralls commented Jul 6, 2019

Pull Request Test Coverage Report for Build 4479

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 34.092%

Totals Coverage Status
Change from base Build 4475: 0.0%
Covered Lines: 1479
Relevant Lines: 4337

💛 - Coveralls

@@ -8,7 +8,7 @@ import nodeExternals from 'webpack-node-externals';
const debug = require('debug')('umi-build-dev:getWebpackConfig');

interface IOpts {
ssr?: boolean | IExportSSROpts;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ssr 不允许 boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以,写到一个 type 里了

| {
externalWhitelist?: WhitelistOption[];
}
| boolean;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sorrycc 写这里了

@sorrycc sorrycc added the pr(bug) label Jul 8, 2019
@sorrycc sorrycc merged commit eacef94 into master Jul 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-types branch July 8, 2019 02:10
kuitos pushed a commit to kuitos/umi that referenced this pull request Jul 23, 2019
* fix: webpack-chain types

* fix: types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[umi-types] webpack-chain模块的类型定义有问题
3 participants