Skip to content

Commit a873856

Browse files
authored
don't send the babel plugin attributes down to the client (#152)
1 parent 18332cb commit a873856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function renderToString(vnode, context, opts, inner, isSvgMode, selectValue) {
157157

158158
if (name.match(/[\s\n\\/='"\0<>]/)) continue;
159159

160-
if (!(opts && opts.allAttributes) && (name==='key' || name==='ref')) continue;
160+
if (!(opts && opts.allAttributes) && (name==='key' || name==='ref' || name==='__self' || name==='__source')) continue;
161161

162162
if (name==='className') {
163163
if (props.class) continue;

0 commit comments

Comments
 (0)