We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e171a commit f97aea1Copy full SHA for f97aea1
src/index.js
@@ -4,12 +4,10 @@ const { default: replaceSymbols, replaceAll } = require('icss-replace-symbols')
4
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/
5
const matchValueDefinition = /(?:\s+|^)([\w-]+):?\s+(.+?)\s*$/g
6
const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/
7
-let options = {}
+
8
let importIndex = 0
9
-let createImportedName =
10
- (options && options.createImportedName) ||
11
- ((importName /*, path*/) =>
12
- `i__const_${importName.replace(/\W/g, '_')}_${importIndex++}`)
+const createImportedName = importName =>
+ `i__const_${importName.replace(/\W/g, '_')}_${importIndex++}`
13
14
module.exports = postcss.plugin('postcss-modules-values', () => (
15
css,
0 commit comments