From 8d32ba9f6b4fee6ebf743fe86a6b9ee61376bcdd Mon Sep 17 00:00:00 2001 From: Mohsen Azimi Date: Thu, 6 Jul 2017 18:30:14 -0700 Subject: [PATCH] make devtoolModuleFilenameTemplate accept a function Reference https://github.com/facebookincubator/create-react-app/blob/567d981ee28188a78731b4c45aedaa60b22a03bd/packages/react-scripts/config/webpack.config.dev.js#L81 --- types/webpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 88cf8a6318..43295be8b9 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -106,7 +106,7 @@ declare namespace webpack { /** The filename of the SourceMaps for the JavaScript files. They are inside the output.path directory. */ sourceMapFilename?: string; /** Filename template string of function for the sources array in a generated SourceMap. */ - devtoolModuleFilenameTemplate?: string; + devtoolModuleFilenameTemplate?: string | (info: any) => string; /** Similar to output.devtoolModuleFilenameTemplate, but used in the case of duplicate module identifiers. */ devtoolFallbackModuleFilenameTemplate?: string; /**