You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(jsx): correct source location when react-jsx and whitespace before jsx
fixesmicrosoft#61533
the code seemed to be using `node.pos` (`node.getFullStart()`) instead of `node.getStart()`, which caused the source location to be off.
now baselines match babel's output (which seems correct).
not sure about using `getTokenPosOfNode()` (used by `getStart()`), but didn't find any better way to do things internally.
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=auto).js
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=force).js
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=legacy).js
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=auto).js
+1-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ System.register(["react/jsx-dev-runtime"], function (exports_1, context_1) {
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=force).js
+1-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ System.register(["react/jsx-dev-runtime"], function (exports_1, context_1) {
Copy file name to clipboardexpand all lines: tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=system,moduledetection=legacy).js
0 commit comments