Skip to content

Commit cc2ae95

Browse files
refactor: code
1 parent fdc802f commit cc2ae95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/;
88

99
module.exports = (options) => {
1010
let importIndex = 0;
11-
let createImportedName =
11+
const createImportedName =
1212
(options && options.createImportedName) ||
1313
((importName /*, path*/) =>
1414
`i__const_${importName.replace(/\W/g, "_")}_${importIndex++}`);

0 commit comments

Comments
 (0)