8 Commits

Author SHA1 Message Date
Alexander Kotliarskyi
8fa1174b32 Skip adding __source if it already exists (#3504) 2016-05-16 16:45:33 -04:00
Alex Kotliarskyi
ca1c4bba86 Fix naming (s/node/path/g) 2016-01-21 22:45:10 -08:00
Alex Kotliarskyi
1f543e1bca Add jsx source annotations only to the files that contain JSX 2016-01-20 14:23:27 -08:00
Alex Kotliarskyi
eaef8302cc Generate unique filename variable 2016-01-20 13:52:55 -08:00
Alex Kotliarskyi
1643592342 Guard against empty loc 2016-01-19 20:59:42 -08:00
Alex Kotliarskyi
9f76cf7c42 Hoist current file name for transform-react-jsx-source
For better tooling support it's important to include absolute file name for JSX
elements. However, having them inline will inflate resulting file size, so we
move the file name to a constant declared at the beginning of the file and
reference it from `__source` attribute.
2016-01-19 20:10:53 -08:00
jim
2198f46f53 In JSX-source plugin, handle case where filename or line are null 2015-11-11 14:06:04 -08:00
jim
f4049db99d Added jsx-source plugin 2015-11-10 13:49:46 -08:00