Title: Add additional options for emitting lualib bundle by MCJack123 · Pull Request #1662 · TypeScriptToLua/TypeScriptToLua · GitHub
Open Graph Title: Add additional options for emitting lualib bundle by MCJack123 · Pull Request #1662 · TypeScriptToLua/TypeScriptToLua
X Title: Add additional options for emitting lualib bundle by MCJack123 · Pull Request #1662 · TypeScriptToLua/TypeScriptToLua
Description: This PR adds two new configuration options, which control how the lualib bundle is saved to disk: luaLibName: Sets the name to use for the lualib bundle. For example, I find the name lualib_bundle to be vague, so I usually change it to typescript to make it clear what the library is for. luaLibEmit: Setting this to false prevents the lualib bundle from being emitted. This is useful to avoid storing lualib in bundled code when it's available outside the bundle already, or simply to reduce generated file bloat. These options have been useful for my environment, where I have a multitude of common libraries in a store made available system-wide. Being able to change the name allows me to use a more descriptive file name in that store, and being able to suppress its generation means I don't have the duplicated file dangling around in bundles or the build directory. Neither of these options can be accomplished through plugins. Changing the name in the generated code could be done with moduleResolution (I haven't tried), but it would not change the generated file's name on disk or in a bundle, and would potentially break other parts of the code. Suppressing emission can't be done for a bundle, since the file is incorporated between afterPrint and beforeEmit with no chance to intervene. These changes will not affect users who do not use them; all default settings match how they were before.
Open Graph Description: This PR adds two new configuration options, which control how the lualib bundle is saved to disk: luaLibName: Sets the name to use for the lualib bundle. For example, I find the name lualib_bundle...
X Description: This PR adds two new configuration options, which control how the lualib bundle is saved to disk: luaLibName: Sets the name to use for the lualib bundle. For example, I find the name lualib_bundle...
Opengraph URL: https://github.com/TypeScriptToLua/TypeScriptToLua/pull/1662
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4704030c-9e33-2b1d-ffdd-c2061e197a16 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D590:3A3799:98E381:D637B9:69722248 |
| html-safe-nonce | 64d35fc0bf84788f502c1ea815c3a26342663a2d422c918a8ff89fcec15a52ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTkwOjNBMzc5OTo5OEUzODE6RDYzN0I5OjY5NzIyMjQ4IiwidmlzaXRvcl9pZCI6IjU3NDM1NzgxMTUwODY2MjMzMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e4c70838c7486cc45e09a4fb85fec78179a9b585321881ee13f286c10b216205 |
| hovercard-subject-tag | pull_request:2907268588 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/TypeScriptToLua/TypeScriptToLua/pull/1662/files |
| twitter:image | https://avatars.githubusercontent.com/u/6236912?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6236912?s=400&v=4 |
| og:image:alt | This PR adds two new configuration options, which control how the lualib bundle is saved to disk: luaLibName: Sets the name to use for the lualib bundle. For example, I find the name lualib_bundle... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19a0eb237b419e41a3d6a0867abebfdb845544063fc287c8c486f2fc019a590f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/TypeScriptToLua/TypeScriptToLua git https://github.com/TypeScriptToLua/TypeScriptToLua.git |
| octolytics-dimension-user_id | 44121206 |
| octolytics-dimension-user_login | TypeScriptToLua |
| octolytics-dimension-repository_id | 115876595 |
| octolytics-dimension-repository_nwo | TypeScriptToLua/TypeScriptToLua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115876595 |
| octolytics-dimension-repository_network_root_nwo | TypeScriptToLua/TypeScriptToLua |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 805f05ae5b701e06271d4ccfc0cbb6252b8b2c21 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width