diff --git a/lib/DependenciesBlockVariable.js b/lib/DependenciesBlockVariable.js index a1a24d184..c4ed91627 100644 --- a/lib/DependenciesBlockVariable.js +++ b/lib/DependenciesBlockVariable.js @@ -44,7 +44,7 @@ class DependenciesBlockVariable { * @returns {ReplaceSource} returns constructed source for expression via templates */ expressionSource(dependencyTemplates, runtimeTemplate) { - const source = new ReplaceSource(new RawSource(this.expression), null); + const source = new ReplaceSource(new RawSource(this.expression)); for (const dep of this.dependencies) { const template = dependencyTemplates.get(dep.constructor); if (!template) { diff --git a/lib/JavascriptGenerator.js b/lib/JavascriptGenerator.js index 57197e419..882f7d4d4 100644 --- a/lib/JavascriptGenerator.js +++ b/lib/JavascriptGenerator.js @@ -18,7 +18,7 @@ class JavascriptGenerator { return new RawSource("throw new Error('No source available');"); } - const source = new ReplaceSource(originalSource, null); + const source = new ReplaceSource(originalSource); this.sourceBlock( module, diff --git a/lib/optimize/ConcatenatedModule.js b/lib/optimize/ConcatenatedModule.js index 05f06b501..254ae090f 100644 --- a/lib/optimize/ConcatenatedModule.js +++ b/lib/optimize/ConcatenatedModule.js @@ -682,7 +682,7 @@ class ConcatenatedModule extends Module { }); const globalScope = scopeManager.acquire(ast); const moduleScope = globalScope.childScopes[0]; - const resultSource = new ReplaceSource(source, null); + const resultSource = new ReplaceSource(source); info.ast = ast; info.internalSource = source; info.source = resultSource; diff --git a/yarn.lock b/yarn.lock index 128195fd7..69909238e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -27,8 +27,8 @@ "@types/babel-types" "*" "@types/node@*": - version "10.0.8" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.8.tgz#37b4d91d4e958e4c2ba0be2b86e7ed4ff19b0858" + version "10.5.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.5.1.tgz#d578446f4abff5c0b49ade9b4e5274f6badaadfc" "@types/node@^9.6.4": version "9.6.15" @@ -43,8 +43,8 @@ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.2.tgz#e13182e1b69871a422d7863e11a4a6f5b814a4bd" "@types/webpack-sources@^0.1.4": - version "0.1.4" - resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-0.1.4.tgz#a52f1cec41e4d24b3df0bf87e8a538945f6d493f" + version "0.1.5" + resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-0.1.5.tgz#be47c10f783d3d6efe1471ff7f042611bd464a92" dependencies: "@types/node" "*" "@types/source-list-map" "*"