Skip to content

Commit b66a294

Browse files
Merge pull request #154 from komlev/master
Adding description of using postcss-js parser with babel 6 compiler
2 parents 19011fb + b73cfc8 commit b66a294

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ export default {
180180
}
181181
```
182182

183+
> If you are using Babel >= v6 you need to do the following in order for the setup to work
184+
185+
> 1. Add [babel-plugin-add-module-exports] to your configuration
186+
> 2. You need to have only one **default** export per style module
187+
183188
If you use JS styles without `postcss-js` parser, you can add `exec` parameter:
184189

185190
```js
@@ -196,6 +201,7 @@ If you use JS styles without `postcss-js` parser, you can add `exec` parameter:
196201
```
197202

198203
[postcss-js]: https://github.com/postcss/postcss-js
204+
[babel-plugin-add-module-exports]: https://github.com/59naga/babel-plugin-add-module-exports
199205

200206
### Dynamic Config
201207

0 commit comments

Comments
 (0)