Skip to content

Commit e094ba9

Browse files
committed
add webpack to devDependencies
fixes "yarn types" needed before "yarn dev" use incremental typescript for next package
1 parent da1f8ad commit e094ba9

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ test-timings.json
3939
# Vercel
4040
.vercel
4141
.now
42+
43+
# Cache
44+
*.tsbuildinfo

packages/next/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"target": "ES2017",
66
"esModuleInterop": true,
77
"moduleResolution": "node",
8-
"jsx": "react"
8+
"jsx": "react",
9+
"incremental": true
910
},
1011
"exclude": ["dist", "./*.d.ts"]
1112
}

packages/react-refresh-utils/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
}
2929
},
3030
"devDependencies": {
31-
"react-refresh": "0.8.3"
31+
"react-refresh": "0.8.3",
32+
"webpack": "^5"
3233
}
3334
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19848,7 +19848,7 @@ webpack-sources@^3.2.0:
1984819848
watchpack "^1.7.4"
1984919849
webpack-sources "^1.4.1"
1985019850

19851-
"webpack5@npm:webpack@5.60.0":
19851+
"webpack5@npm:webpack@5.60.0", webpack@^5:
1985219852
version "5.60.0"
1985319853
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.60.0.tgz#9c26f38a57c9688b0a8c5c885e05197344eae67d"
1985419854
integrity sha512-OL5GDYi2dKxnwJPSOg2tODgzDxAffN0osgWkZaBo/l3ikCxDFP+tuJT3uF7GyBE3SDBpKML/+a8EobyWAQO3DQ==

0 commit comments

Comments
 (0)