Skip to content

Commit 55199ae

Browse files
committed
Readme: add a note about ES6
closes #8, #14
1 parent 91512a2 commit 55199ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ import {
6363
```
6464

6565
Another problem that is solved automatically by react-polymer is that
66-
`className` doesn't work on Polymer elements.
66+
`className` doesn't work on Polymer elements when using Shady DOM.
6767

6868
See [more examples](https://github.com/jscissr/react-polymer/blob/master/demo/index-source.js).
6969

70+
## ES6
71+
72+
This module uses some ES6 features, so you should run it through a transpiler like [babel](https://babeljs.io/). If you use [browserify](http://browserify.org/), you don't need to do anything. If you use [webpack](https://webpack.github.io/), you have to [enable transpiling](https://webpack.github.io/docs/usage.html#transpiling-es2015-using-babel-loader), but replace the default `exclude` config with `exclude: s => /node_modules/.test(s) && !/react-polymer/.test(s)`. (If you know how to make webpack do this automatically like it works with browserify, please tell me!)
73+
7074
## Testing
7175

7276
```shell

0 commit comments

Comments
 (0)