Skip to content

Commit a570ba0

Browse files
committed
fix(typescript): use @types/webpack-env instead of @types/node
fixes #2531
1 parent 7e5382f commit a570ba0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"baseUrl": ".",
1616
"types": [
17-
"node"<% if (hasMocha || hasJest) { %>,<% } %>
17+
"webpack-env"<% if (hasMocha || hasJest) { %>,<% } %>
1818
<%_ if (hasMocha) { _%>
1919
"mocha",
2020
"chai"

packages/@vue/cli-plugin-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"access": "public"
2323
},
2424
"dependencies": {
25-
"@types/node": "^10.5.2",
25+
"@types/webpack-env": "^1.13.6",
2626
"@vue/cli-shared-utils": "^3.0.2",
2727
"fork-ts-checker-webpack-plugin": "^0.4.4",
2828
"globby": "^8.0.1",

0 commit comments

Comments
 (0)