Skip to content

Commit 864d520

Browse files
ryantdfilipesilva
authored andcommitted
fix(@ngtools/webpack): Bump loader-utils and use getOptions (#5001)
1 parent e2b6dae commit 864d520

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"karma-webpack": "^2.0.0",
7373
"less": "^2.7.2",
7474
"less-loader": "^2.2.3",
75-
"loader-utils": "^0.2.16",
75+
"loader-utils": "^1.0.2",
7676
"lodash": "^4.11.1",
7777
"magic-string": "^0.19.0",
7878
"minimatch": "^3.0.3",

packages/@ngtools/webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"dependencies": {
2828
"enhanced-resolve": "^3.1.0",
29-
"loader-utils": "^0.2.16",
29+
"loader-utils": "^1.0.2",
3030
"magic-string": "^0.19.0",
3131
"source-map": "^0.5.6"
3232
},

packages/@ngtools/webpack/src/loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export function ngcLoader(this: LoaderContext & { _compilation: any }) {
374374
})
375375
.catch(err => cb(err));
376376
} else {
377-
const options = loaderUtils.parseQuery(this.query);
377+
const options = loaderUtils.getOptions(this) || {};
378378
const tsConfigPath = options.tsConfigPath;
379379
const tsConfig = ts.readConfigFile(tsConfigPath, ts.sys.readFile);
380380

0 commit comments

Comments
 (0)