Skip to content

Commit

Permalink
Update TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
ooflorent authored and sokra committed Dec 31, 2018
1 parent 762155d commit d0a3c9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
16 changes: 3 additions & 13 deletions lib/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ class Module extends DependenciesBlock {

makeSerializable(Module, "webpack/lib/Module");

// TODO remove in webpack 6
Object.defineProperty(Module.prototype, "hasEqualsChunks", {
get() {
throw new Error(
Expand All @@ -657,6 +658,7 @@ Object.defineProperty(Module.prototype, "hasEqualsChunks", {
}
});

// TODO remove in webpack 6
Object.defineProperty(Module.prototype, "isUsed", {
get() {
throw new Error(
Expand All @@ -665,6 +667,7 @@ Object.defineProperty(Module.prototype, "isUsed", {
}
});

// TODO remove in webpack 6
Object.defineProperty(Module.prototype, "used", {
get() {
throw new Error(
Expand All @@ -678,17 +681,4 @@ Object.defineProperty(Module.prototype, "used", {
}
});

Object.defineProperty(Module.prototype, "usedExports", {
get() {
throw new Error(
"Module.usedExports was refactored (use ModuleGraph.getUsedExports instead)"
);
},
set(value) {
throw new Error(
"Module.usedExports was refactored (use ModuleGraph.setUsedExports instead)"
);
}
});

module.exports = Module;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"script-loader": "~0.7.0",
"simple-git": "^1.65.0",
"style-loader": "^0.19.1",
"typescript": "^3.1.6",
"typescript": "^3.2.2",
"url-loader": "^0.6.2",
"wast-loader": "^1.5.5",
"worker-loader": "^2.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7138,10 +7138,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^3.1.6:
version "3.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==
typescript@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5"
integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==

ua-parser-js@^0.7.9:
version "0.7.18"
Expand Down

0 comments on commit d0a3c9f

Please sign in to comment.