Title: sourcemap file contains relative path calculated from parent of outDir and basePath · Issue #8445 · microsoft/TypeScript · GitHub
Open Graph Title: sourcemap file contains relative path calculated from parent of outDir and basePath · Issue #8445 · microsoft/TypeScript
X Title: sourcemap file contains relative path calculated from parent of outDir and basePath · Issue #8445 · microsoft/TypeScript
Description: Hi from ng-conf! :) TS nightly. alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/myfile.ts export let a:string; alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/tsconfig.json { "compilerOptions":...
Open Graph Description: Hi from ng-conf! :) TS nightly. alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/myfile.ts export let a:string; alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/t...
X Description: Hi from ng-conf! :) TS nightly. alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/myfile.ts export let a:string; alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/t...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/8445
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sourcemap file contains relative path calculated from parent of outDir and basePath","articleBody":"Hi from ng-conf! :)\n\nTS nightly.\n\n```\nalexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/myfile.ts\nexport let a:string;\nalexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/tsconfig.json\n{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"target\": \"es5\",\n \"noImplicitAny\": false,\n \"sourceMap\": true,\n \"inlineSources\": true,\n \"outDir\": \"../../../../dist\"\n\n },\n \"exclude\": [\n \"node_modules\"\n ]\n}\n$ cat dist/myfile.js.map\n{\"version\":3,\"file\":\"myfile.js\",\"sourceRoot\":\"\",\"sources\":[\"../some/path/to/src/myfile.ts\"],\"names\":[],\"mappings\":\";AAAoB\",\"sourcesContent\":[\"export let a:string;\"]}\n```\n\nthe sourceMap contains my private bits \"some/path/to/\" which we would like it not to.\nThis causes devTools in the browser to show a strange path that confuses users.\n\n\u003cimg width=\"265\" alt=\"screen shot 2016-05-03 at 12 52 03 pm\" src=\"https://cloud.githubusercontent.com/assets/47395/14994603/f848909e-112d-11e6-9db0-85279115580f.png\">\n\nThe obvious way to fix this would be the `sourceRoot` option in `tsconfig.json` which we could set to `..` but this is not allowed:\n\n`error TS5053: Option 'sourceRoot' cannot be specified with option 'inlineSources'.`\n\nProposal is that sourceRoot should be allowed with inlineSources. The resulting `.js.map` file would contain a path that doesn't resolve locally on disk, but does work at runtime. (it's similar to the pathMapping feature where design-time filesystem layout does not need to match runtime)\n\ncc @igorminar\n","author":{"url":"https://github.com/alexeagle","@type":"Person","name":"alexeagle"},"datePublished":"2016-05-03T18:56:41Z","url":"https://github.com/microsoft/TypeScript/issues/8445"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a1d3f1c5-e80e-1013-5252-a7b82f21d9d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 847A:C4AA6:1E1A23:294130:6AFBFF36 |
| html-safe-nonce | 16cf7cdbfe11b8fe78abcd4e2218432eb8ad2f774d09e11f339e5590aa8afbf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDdBOkM0QUE2OjFFMUEyMzoyOTQxMzA6NkFGQkZGMzYiLCJ2aXNpdG9yX2lkIjoiMzAzMDI1OTM4OTg1OTEwMDcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4aa9dc33dd2f0f2f1dc64f5a8486b93293baf66d2e82bf4aa022202a455f5db3 |
| hovercard-subject-tag | issue:152848728 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/8445/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84eaa764ef1071fe34afa2539c057e0299ef8aac65dc4756b4e6152f9dc9fb6a/microsoft/TypeScript/issues/8445 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84eaa764ef1071fe34afa2539c057e0299ef8aac65dc4756b4e6152f9dc9fb6a/microsoft/TypeScript/issues/8445 |
| og:image:alt | Hi from ng-conf! :) TS nightly. alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/to/src/myfile.ts export let a:string; alexeagle-macbookpro2:repro_sourceMap alexeagle$ cat some/path/t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexeagle |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width