diff --git a/packages/dynamic-import-vars/src/index.js b/packages/dynamic-import-vars/src/index.js index 0526aafb7..daad3e8d9 100644 --- a/packages/dynamic-import-vars/src/index.js +++ b/packages/dynamic-import-vars/src/index.js @@ -13,10 +13,7 @@ import { normalizePath } from './dynamic-import-to-glob'; -const normalizePathString = normalizePath - .toString() - .substring(6) - .replace(/\n {2}/g, '\n '); +const normalizePathString = normalizePath.toString().substring(10); function dynamicImportVariables({ include, exclude, warnOnError, errorWhenNoFilesFound } = {}) { const filter = createFilter(include, exclude);