Skip to content

Commit eddbd96

Browse files
committed
using icss-replace-symbols
1 parent 08bae4d commit eddbd96

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"test": "test"
88
},
99
"dependencies": {
10+
"icss-replace-symbols": "^1.0.0",
1011
"postcss": "^4.1.11",
1112
"postcss-modules-extract-imports": "^0.0.6",
1213
"postcss-modules-local-by-default": "^0.0.9",

src/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const importRegexp = /^:import\((.+)\)$/
2-
import replaceSymbols from './replace-symbols'
2+
import replaceSymbols from 'icss-replace-symbols'
33

44
export default class Parser {
55
constructor( pathFetcher, trace ) {

src/postcss-modules-constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import postcss from 'postcss'
2-
import replaceSymbols from './replace-symbols'
2+
import replaceSymbols from 'icss-replace-symbols'
33

44
const matchImports = /^(.+?)\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/
55
const matchLet = /(?:,\s+|^)([\w-]+):?\s+("[^"]*"|'[^']*'|[^,]+)\s?/g

src/replace-symbols.js

-17
This file was deleted.

0 commit comments

Comments
 (0)