Skip to content

Commit

Permalink
fix(@ngtools/webpack): Bump loader-utils and use getOptions (#5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantd authored and filipesilva committed Mar 1, 2017
1 parent e2b6dae commit 864d520
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"karma-webpack": "^2.0.0",
"less": "^2.7.2",
"less-loader": "^2.2.3",
"loader-utils": "^0.2.16",
"loader-utils": "^1.0.2",
"lodash": "^4.11.1",
"magic-string": "^0.19.0",
"minimatch": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"enhanced-resolve": "^3.1.0",
"loader-utils": "^0.2.16",
"loader-utils": "^1.0.2",
"magic-string": "^0.19.0",
"source-map": "^0.5.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export function ngcLoader(this: LoaderContext & { _compilation: any }) {
})
.catch(err => cb(err));
} else {
const options = loaderUtils.parseQuery(this.query);
const options = loaderUtils.getOptions(this) || {};
const tsConfigPath = options.tsConfigPath;
const tsConfig = ts.readConfigFile(tsConfigPath, ts.sys.readFile);

Expand Down

0 comments on commit 864d520

Please sign in to comment.