Skip to content

Commit

Permalink
chore: ci broken (#6236)
Browse files Browse the repository at this point in the history
* chore: ci broken

* chore: test case
  • Loading branch information
ycjcl868 authored Mar 9, 2021
1 parent 7304f6c commit 5ad7c7c
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 1,691 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function runPlugin(
sourceType: 'module',
presets: [
[
require.resolve('@babel/preset-react'),
require.resolve('@umijs/deps/compiled/babel/preset-react'),
{
development: true,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/DevCompileDonePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class DevCompileDonePlugin {
}
apply(compiler: webpack.Compiler) {
let isFirstCompile = true;
compiler.hooks.done.tap('DevFirstCompileDone', (stats) => {
compiler.hooks.done.tap('DevFirstCompileDone', (stats: any) => {
if (stats.hasErrors()) {
// make sound
if (process.env.SYSTEM_BELL !== 'none') {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Bundler {
invalid.tap('umi-dev-server', () => {
server.sockWrite({ type: 'invalid' });
});
done.tap('umi-dev-server', (stats) => {
done.tap('umi-dev-server', (stats: any) => {
sendStats({
server,
sockets: server.sockets,
Expand Down
Loading

0 comments on commit 5ad7c7c

Please sign in to comment.