Skip to content

Commit bf0d7ee

Browse files
committed
Adding description of using postcss-js parser with babel 6 compiler
1 parent 19011fb commit bf0d7ee

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 6 compiler and up you need to do the following in order for setup to work
184+
185+
> * It is suggested to have only **default** export per style module
186+
> * You need to add [babel-plugin-add-module-exports] to you configuration
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)