feat(react-jsx-source): add columnNumber property (#11139)
* feat(react-jsx-source): add column property This will be useful to tools that consume the injected `__source` prop, allowing precise source locations to be displayed. * Rename column -> columnNumber, make 1-based
This commit is contained in:
@@ -7,7 +7,8 @@ var expected = multiline([
|
||||
'var _jsxFileName = "/fake/path/mock.js";',
|
||||
'var x = <sometag __source={{',
|
||||
' fileName: _jsxFileName,',
|
||||
' lineNumber: 1',
|
||||
' lineNumber: 1,',
|
||||
' columnNumber: 9',
|
||||
'}} />;',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user