-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #53613 (Fix Go To Source Definition in `--m...) into releas…
…e-5.0 (#53617) Co-authored-by: Andrew Branch <[email protected]>
- Loading branch information
1 parent
97dac8a
commit 365cb58
Showing
6 changed files
with
83 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/baselines/reference/goToSource15_bundler.baseline.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// === goToSourceDefinition === | ||
// === /node_modules/react/cjs/react.production.min.js === | ||
// 'use strict';exports.[|{| defId: 0 |}useState|]=function(a){};exports.version='16.8.6'; | ||
|
||
// === /node_modules/react/cjs/react.development.js === | ||
// 'use strict'; | ||
// if (process.env.NODE_ENV !== 'production') { | ||
// (function() { | ||
// function useState(initialState) {} | ||
// exports.[|{| defId: 1 |}useState|] = useState; | ||
// exports.version = '16.8.6'; | ||
// }()); | ||
// } | ||
|
||
// === /index.ts === | ||
// import { /*GOTO SOURCE DEF*/useState } from 'react'; | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"defId": 0, | ||
"containerKind": "", | ||
"containerName": "", | ||
"kind": "", | ||
"name": "" | ||
}, | ||
{ | ||
"defId": 1, | ||
"containerKind": "", | ||
"containerName": "", | ||
"kind": "", | ||
"name": "" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/// <reference path="../fourslash.ts" /> | ||
|
||
// @Filename: /tsconfig.json | ||
//// { "compilerOptions": { "module": "esnext", "moduleResolution": "bundler" } } | ||
|
||
// @Filename: /node_modules/react/package.json | ||
//// { "name": "react", "version": "16.8.6", "main": "index.js" } | ||
|
||
// @Filename: /node_modules/react/index.js | ||
//// 'use strict'; | ||
//// | ||
//// if (process.env.NODE_ENV === 'production') { | ||
//// module.exports = require('./cjs/react.production.min.js'); | ||
//// } else { | ||
//// module.exports = require('./cjs/react.development.js'); | ||
//// } | ||
|
||
// @Filename: /node_modules/react/cjs/react.production.min.js | ||
//// 'use strict';exports./*production*/useState=function(a){};exports.version='16.8.6'; | ||
|
||
// @Filename: /node_modules/react/cjs/react.development.js | ||
//// 'use strict'; | ||
//// if (process.env.NODE_ENV !== 'production') { | ||
//// (function() { | ||
//// function useState(initialState) {} | ||
//// exports./*development*/useState = useState; | ||
//// exports.version = '16.8.6'; | ||
//// }()); | ||
//// } | ||
|
||
// @Filename: /index.ts | ||
//// import { [|/*start*/useState|] } from 'react'; | ||
|
||
verify.goToSourceDefinition("start", ["production", "development"]); |