Title: Introduce a new non-bundling compilation mode · Issue #27 · purescript-lua/purescript-lua · GitHub
Open Graph Title: Introduce a new non-bundling compilation mode · Issue #27 · purescript-lua/purescript-lua
X Title: Introduce a new non-bundling compilation mode · Issue #27 · purescript-lua/purescript-lua
Description: Problem purescript-lua currently only supports bundling — merging all modules into a single Lua file. It is often needed instead to keep the original directory structure and keep the emitted Lua modules small. Approach Add a new compilat...
Open Graph Description: Problem purescript-lua currently only supports bundling — merging all modules into a single Lua file. It is often needed instead to keep the original directory structure and keep the emitted Lua mo...
X Description: Problem purescript-lua currently only supports bundling — merging all modules into a single Lua file. It is often needed instead to keep the original directory structure and keep the emitted Lua mo...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/27
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Introduce a new non-bundling compilation mode","articleBody":"## Problem\n\npurescript-lua currently only supports bundling — merging all modules into a single Lua file. It is often needed instead to keep the original directory structure and keep the emitted Lua modules small.\n\n## Approach\n\nAdd a new compilation mode (`--module`?) that preserves the source tree at the filesystem level:\n\n```\nfoo/Foo.purs\nfoo/Bar/Baz.purs\n```\n->\n```\nfoo/Foo.lua\nfoo/Bar/Baz.lua\n```\n\nOr something along those lines. There may be pitfalls to consider; see the TypeScriptToLua discussion at https://github.com/TypeScriptToLua/TypeScriptToLua/issues/1445.\n\n## Prerequisites / Relations\n\nIndependent — a standalone compilation-mode feature with no ordering dependency on the perf/optimizer work.\n\n## Verification / Measurement\n\nCompiling a multi-module project in the new mode produces one `.lua` file per source module, mirroring the source directory layout rather than a single bundled file, and the emitted tree runs correctly with cross-module references resolving at runtime.\n","author":{"url":"https://github.com/Renegatto","@type":"Person","name":"Renegatto"},"datePublished":"2024-08-13T21:29:12Z","url":"https://github.com/purescript-lua/purescript-lua/issues/27"}
| 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:25fb4cd8-36d9-ce88-75b0-d6a96e388531 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAEA:361639:706325:98019A:6B00DB63 |
| html-safe-nonce | 98be93f97680ddba5d4864e408325de329b6425c4a700e11385865d977cfdcb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUVBOjM2MTYzOTo3MDYzMjU6OTgwMTlBOjZCMDBEQjYzIiwidmlzaXRvcl9pZCI6IjM3MTU2NzcwNjM5ODY4NjI5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4de74a971ab76f8a0f30ffcd2364f2cf6874940747dff463d42a4df8448dad6d |
| hovercard-subject-tag | issue:2464256912 |
| 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/purescript-lua/purescript-lua/27/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5615c05ed07876d47d548cee6e188a18e96a74a63b3f24fbdbdc6c9323b39c78/purescript-lua/purescript-lua/issues/27 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5615c05ed07876d47d548cee6e188a18e96a74a63b3f24fbdbdc6c9323b39c78/purescript-lua/purescript-lua/issues/27 |
| og:image:alt | Problem purescript-lua currently only supports bundling — merging all modules into a single Lua file. It is often needed instead to keep the original directory structure and keep the emitted Lua mo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Renegatto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width