Skip to content

Commit 3ffe8c0

Browse files
satya164MicheleBertoli
authored andcommitted
Update Linaria setup (#77)
Linaria now has a webpack loader and supports object Literals via a Babel plugin
1 parent 3205699 commit 3ffe8c0

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For example, if a package supports the css file extraction you can run the autop
3939
| [i-css](https://github.com/irom-io/i-css) | 1.0.4 ||||| |
4040
| [j2c](https://github.com/j2css/j2c) | 0.10.0 | |||||
4141
| [jsxstyle](https://github.com/petehunt/jsxstyle) | 0.0.14 || | || |
42-
| [linaria](https://github.com/callstack-io/linaria) | 0.0.2-alpha.0 |||| ||
42+
| [linaria](https://github.com/callstack-io/linaria) | 0.5.0 |||| ||
4343
| [pre-style](https://github.com/soluml/pre-style) | 1.0.9-alpha | ||| ||
4444
| [radium](https://github.com/FormidableLabs/radium) | 0.13.5 ||||| |
4545
| [react-css-builder](https://github.com/jhudson8/react-css-builder) | 0.2.0 | | | || |

linaria/.babelrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"presets": [
33
"env",
4-
"react",
5-
["linaria/babel", {
6-
"single": true,
7-
"filename": "styles.css",
8-
}]
4+
"react"
95
]
106
}

linaria/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
"author": "Michele Bertoli",
99
"license": "MIT",
1010
"dependencies": {
11-
"linaria": "0.0.2-alpha.0",
12-
"react": "^15.6.1",
13-
"react-dom": "^15.6.1"
11+
"linaria": "0.5.0",
12+
"react": "^16.2.0",
13+
"react-dom": "^16.2.0"
1414
},
1515
"devDependencies": {
16-
"babel-core": "^6.25.0",
17-
"babel-loader": "^7.1.1",
18-
"babel-preset-env": "^1.6.0",
16+
"babel-core": "^6.26.0",
17+
"babel-loader": "^7.1.2",
18+
"babel-preset-env": "^1.6.1",
1919
"babel-preset-react": "^6.24.1",
2020
"css-loader": "^0.28.7",
21-
"extract-text-webpack-plugin": "^3.0.0",
22-
"style-loader": "^0.18.2",
23-
"webpack": "^3.3.0"
21+
"extract-text-webpack-plugin": "^3.0.2",
22+
"style-loader": "^0.19.1",
23+
"webpack": "^3.10.0"
2424
}
2525
}

linaria/styles.css

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

linaria/webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ module.exports = {
66
{
77
test: /\.js$/,
88
exclude: /(node_modules|bower_components)/,
9-
use: {
10-
loader: 'babel-loader',
11-
}
9+
use: ['babel-loader', 'linaria/loader']
1210
},
1311
{
1412
test: /\.css$/,

0 commit comments

Comments
 (0)