Skip to content

Commit

Permalink
add support for slashes for require
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-party committed Jul 20, 2024
1 parent 622fcc8 commit 8b4b12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "scribunto-bundler",
"description": "Lua bundler for Scribunto",
"version": "0.2.3",
"version": "0.2.4",
"author": "Astrid <[email protected]>",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/lua.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function index(mainLuaFile: string): Promise<Module[]> {
});

for (const match of [...fileContent.matchAll(requireRegex)]) {
const namePath = match[1].split('.');
const namePath = match[1].split('.').join('/').split('/');

let targetFile: string | undefined;

Expand Down

0 comments on commit 8b4b12b

Please sign in to comment.