Skip to content

Commit 38e38c7

Browse files
committed
using the beta plugins, we are postcss v5 compliant!
1 parent eddbd96 commit 38e38c7

File tree

3 files changed

+13
-95
lines changed

3 files changed

+13
-95
lines changed

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
{
22
"name": "css-modules-loader-core",
3-
"version": "0.0.12",
3+
"version": "1.0.0-beta1",
44
"description": "A loader-agnostic CSS Modules implementation, based on PostCSS",
55
"main": "lib/index.js",
66
"directories": {
77
"test": "test"
88
},
99
"dependencies": {
1010
"icss-replace-symbols": "^1.0.0",
11-
"postcss": "^4.1.11",
12-
"postcss-modules-extract-imports": "^0.0.6",
13-
"postcss-modules-local-by-default": "^0.0.9",
14-
"postcss-modules-scope": "^0.0.8"
11+
"postcss": "^5.0.5",
12+
"postcss-modules-constants": "^1.0.0",
13+
"postcss-modules-extract-imports": "1.0.0-beta2",
14+
"postcss-modules-local-by-default": "css-modules/postcss-modules-local-by-default",
15+
"postcss-modules-scope": "1.0.0-beta2"
1516
},
1617
"devDependencies": {
1718
"babel": "^5.5.4",
18-
"babel-eslint": "^3.1.14",
19+
"babel-eslint": "^4.1.3",
1920
"babelify": "^6.1.2",
20-
"chokidar-cli": "^0.2.1",
21-
"eslint": "^0.22.1",
21+
"chokidar-cli": "^1.0.1",
22+
"eslint": "^1.5.0",
2223
"mocha": "^2.2.5"
2324
},
2425
"scripts": {

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import postcss from 'postcss'
22
import localByDefault from 'postcss-modules-local-by-default'
33
import extractImports from 'postcss-modules-extract-imports'
44
import scope from 'postcss-modules-scope'
5-
import constants from "./postcss-modules-constants"
5+
import constants from 'postcss-modules-constants'
66

77
import Parser from './parser'
88

@@ -22,9 +22,10 @@ export default class Core {
2222
}
2323
}
2424

25-
26-
// These three plugins are aliased under this package for simplicity.
25+
// These four plugins are aliased under this package for simplicity.
2726
Core.localByDefault = localByDefault
2827
Core.extractImports = extractImports
2928
Core.scope = scope
29+
Core.constants = constants
30+
3031
Core.defaultPlugins = [constants, localByDefault, extractImports, scope]

src/postcss-modules-constants.js

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)