Skip to content

Commit f97aea1

Browse files
committed
Remove dead options
1 parent e2e171a commit f97aea1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ const { default: replaceSymbols, replaceAll } = require('icss-replace-symbols')
44
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/
55
const matchValueDefinition = /(?:\s+|^)([\w-]+):?\s+(.+?)\s*$/g
66
const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/
7-
let options = {}
7+
88
let importIndex = 0
9-
let createImportedName =
10-
(options && options.createImportedName) ||
11-
((importName /*, path*/) =>
12-
`i__const_${importName.replace(/\W/g, '_')}_${importIndex++}`)
9+
const createImportedName = importName =>
10+
`i__const_${importName.replace(/\W/g, '_')}_${importIndex++}`
1311

1412
module.exports = postcss.plugin('postcss-modules-values', () => (
1513
css,

0 commit comments

Comments
 (0)