diff --git a/lib/source-loader/src/dependencies-lookup/readAsObject.js b/lib/source-loader/src/dependencies-lookup/readAsObject.js index 666e2969d726..8e5ad53d669a 100644 --- a/lib/source-loader/src/dependencies-lookup/readAsObject.js +++ b/lib/source-loader/src/dependencies-lookup/readAsObject.js @@ -2,7 +2,7 @@ import injectDecorator from '../abstract-syntax-tree/inject-decorator'; import { sanitizeSource } from '../abstract-syntax-tree/generate-helpers'; function readAsObject(classLoader, inputSource, mainFile) { - const options = this.getOptions(); + const options = classLoader.getOptions(); const result = injectDecorator( inputSource, classLoader.resourcePath,