Title: Enable use of this library without installing `source-map-support` · Issue #1149 · javascript-obfuscator/javascript-obfuscator · GitHub
Open Graph Title: Enable use of this library without installing `source-map-support` · Issue #1149 · javascript-obfuscator/javascript-obfuscator
X Title: Enable use of this library without installing `source-map-support` · Issue #1149 · javascript-obfuscator/javascript-obfuscator
Description: Is your feature request related to a problem? Please describe. I've noticed that running require('source-map-support').install() in a node process with Babel Register started by Yarn Plug'n'Play breaks line numbers in stack traces. I hav...
Open Graph Description: Is your feature request related to a problem? Please describe. I've noticed that running require('source-map-support').install() in a node process with Babel Register started by Yarn Plug'n'Play br...
X Description: Is your feature request related to a problem? Please describe. I've noticed that running require('source-map-support').install() in a node process with Babel Register started by Yarn Pl...
Opengraph URL: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable use of this library without installing `source-map-support`","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\r\nI've noticed that running `require('source-map-support').install()` in a `node` process with Babel Register started by Yarn Plug'n'Play breaks line numbers in stack traces. I haven't figured out whether it's an issue with PnP or with `source-map-support`. I'm also not sure about the reasoning behind using `source-map-support` as a side effect in `javascript-obfuscator`.\r\n\r\n**Describe the solution you'd like**\r\n\r\nI see we are already publishing a few different flavors: `index.js`, `index.cli.js`, and `index.browser.js`. One solution would be to publish another `index.no-source-maps.js` that excludes `require('source-map-support').install()` at the start.\r\n\r\n**Describe alternatives you've considered**\r\n\r\nWe could also use an environment variable to control the `require('source-map-support').install()` behavior.\r\n\r\n**Additional context**\r\n\r\nThe workaround right now is to use a Yarn Patch to remove `require('source-map-support').install()` from `javascript-obfuscator`.","author":{"url":"https://github.com/mhassan1","@type":"Person","name":"mhassan1"},"datePublished":"2023-02-15T16:12:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1149/javascript-obfuscator/issues/1149"}
| 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:4af942c2-31bb-d34f-ab30-3c27827e0bfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6E8:3A767B:21FEC1B:22D2675:6A62DEDC |
| html-safe-nonce | a47038ac8543aa11fb93ef2329c6a2bf3870087c71a07eeb04eeb35b8ac56f9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkU4OjNBNzY3QjoyMUZFQzFCOjIyRDI2NzU6NkE2MkRFREMiLCJ2aXNpdG9yX2lkIjoiMzUzNTIxMDc0MTU4NjEyNDUwOCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 0af956f140b1fcc1c9b0b76eea0e6856452db9cbaab10239bc67f5b7266df20b |
| hovercard-subject-tag | issue:1586136801 |
| 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/javascript-obfuscator/javascript-obfuscator/1149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11ed29d758a7e1bfafeaccc0241c1d016fb11906d962e7c7fc57919001e9b019/javascript-obfuscator/javascript-obfuscator/issues/1149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11ed29d758a7e1bfafeaccc0241c1d016fb11906d962e7c7fc57919001e9b019/javascript-obfuscator/javascript-obfuscator/issues/1149 |
| og:image:alt | Is your feature request related to a problem? Please describe. I've noticed that running require('source-map-support').install() in a node process with Babel Register started by Yarn Plug'n'Play br... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhassan1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/javascript-obfuscator/javascript-obfuscator git https://github.com/javascript-obfuscator/javascript-obfuscator.git |
| octolytics-dimension-user_id | 23015672 |
| octolytics-dimension-user_login | javascript-obfuscator |
| octolytics-dimension-repository_id | 58360147 |
| octolytics-dimension-repository_nwo | javascript-obfuscator/javascript-obfuscator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58360147 |
| octolytics-dimension-repository_network_root_nwo | javascript-obfuscator/javascript-obfuscator |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width