Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02:00
Nicolò Ribaudo
8c7d4b55c9
Add plugins name ( #8769 )
...
* Add plugins name
* Add missing names found by the plugin
* Add eslint plugin
2018-11-18 23:02:58 +01:00
Yongxu Ren
0fd3da110d
Rewrite Hub as interface #5047
2018-08-20 19:30:29 +02:00
Logan Smyth
a4795408b4
Allow plugins to assert that a specific babel version has loaded the plugin. ( #7450 )
2018-03-04 14:36:54 -08:00
Nicolò Ribaudo
a2aabbd33d
Generate better builder names for JSX* and TS* ( #6967 )
...
e.g. JSXIdentifier -> jsxIdentifier.
The jSXIdentifier alias isn't removed, so this commit doesn't introduce breaking changes.
2017-12-07 12:17:40 +01:00
Logan Smyth
6fe7f77eb4
Merge pull request #6778 from loganfsmyth/use-peerdep
...
Use the peerDep to load types/template/traverse in plugins
2017-11-08 23:05:08 -08:00
Logan Smyth
6684986372
Expose an official API to access the current filename.
2017-11-08 16:48:25 -08:00
Logan Smyth
b19b66d94b
Use peerDep rather than plugin param for common APIs.
2017-11-06 11:32:47 -08:00
Daniel Tschinder
9a0dd4e001
Fix jsx-source to not fail without filename ( #6239 )
2017-09-16 02:44:48 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Logan Smyth
c1be6a36c4
Delete Logger class.
2017-03-14 13:39:56 -07:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Brian Ng
8c35b320d3
Bump eslint-config-babel and fix lint ( #5129 )
2017-01-17 10:51:16 +01:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
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