seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
78 stars 10 forks source link

Fix bundled code bug where the modules identifier is undeclared #151

Closed jeparlefrancais closed 10 months ago

jeparlefrancais commented 10 months ago

The generated code when bundling is broken and the modules identifier is not declared when running through the load function.

github-actions[bot] commented 10 months ago

Coverage after merging fix-bundle-module-local-bug into main will be

86.98%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/rules/bundle/path_require_mode
   module_definitions.rs80.48%100%76%81.03%105–109, 114, 133, 17, 277–278, 296–297, 317, 321, 333, 337–341, 343, 346–348, 350, 353–370, 373–375, 377, 420–422, 47–50, 53–56, 72, 78–79