From 421802418228ed55c7b7ccab2094f9ac0ff598c5 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 26 Sep 2023 20:14:21 +0530 Subject: [PATCH] fix(codegen): exclude lune types in bundling --- darklua/codegen.luau | 2 +- sourcemap.json | 48 +------------------------------------------- 2 files changed, 2 insertions(+), 48 deletions(-) diff --git a/darklua/codegen.luau b/darklua/codegen.luau index 9af2a0a..ae69eaf 100644 --- a/darklua/codegen.luau +++ b/darklua/codegen.luau @@ -42,7 +42,7 @@ export type Options = { return function(opts: Options): string local generator: Generators = opts.generator or "retain_lines" local encodedExcludes = JSONEncode(opts.excludes) - local excludes = (encodedExcludes == "null" and "[]") or encodedExcludes + local excludes = (encodedExcludes == "null" and '["@lune/**"]') or encodedExcludes local requireMode = opts.requireMode or "path" local moduleFolderName = opts.moduleFolderName or "init" local sources = JSONEncode(opts.sources or { ["@terracotta"] = "./.terracotta" }) diff --git a/sourcemap.json b/sourcemap.json index 2ee3444..9f2a036 100644 --- a/sourcemap.json +++ b/sourcemap.json @@ -1,47 +1 @@ -{ - "name": "terracotta", - "className": "Folder", - "filePaths": [ - "default.project.json" - ], - "children": [ - { - "name": "darklua", - "className": "Folder", - "children": [ - { - "name": "bundler", - "className": "ModuleScript", - "filePaths": [ - "darklua/bundler.luau" - ] - }, - { - "name": "cmd", - "className": "ModuleScript", - "filePaths": [ - "darklua/cmd.luau" - ] - }, - { - "name": "codegen", - "className": "ModuleScript", - "filePaths": [ - "darklua/codegen.luau" - ] - }, - { - "name": "minifier", - "className": "ModuleScript", - "filePaths": [ - "darklua/minifier.luau" - ] - } - ] - }, - { - "name": "terracotta", - "className": "Folder" - } - ] -} \ No newline at end of file +{"name":"terracotta","className":"Folder","filePaths":["default.project.json"],"children":[{"name":"darklua","className":"Folder","children":[{"name":"bundler","className":"ModuleScript","filePaths":["darklua/bundler.luau"]},{"name":"cmd","className":"ModuleScript","filePaths":["darklua/cmd.luau"]},{"name":"codegen","className":"ModuleScript","filePaths":["darklua/codegen.luau"]},{"name":"minifier","className":"ModuleScript","filePaths":["darklua/minifier.luau"]}]},{"name":"terracotta","className":"Folder"}]} \ No newline at end of file