GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — When using watch mode, the lualib_bundle output is strange from the third time onwards. · Issue #1575 · TypeScriptToLua/TypeScriptToLua

When using watch mode, the lualib_bundle output is strange from the third time onwards. #1575

New issue
Copy link
New issue
Copy link
Open
Open
When using watch mode, the lualib_bundle output is strange from the third time onwards.#1575
Copy link

Description

@nkari82
nkari82
opened on Aug 26, 2024
Issue body actions

my tsconfig.js

{
  "compilerOptions": {
    "target": "esnext",
    "lib": [
      "esnext"
    ],
    "module": "commonjs",
    "types": [
      "@typescript-to-lua/language-extensions",
      "lua-types/jit",
      "projectdl"
    ],
    "strict": true,
    "experimentalDecorators": true,
    "sourceMap": true,
    "typeRoots": [
      "./types", "./node_modules"
    ],
    "rootDir": "ts",
    "outDir": "lua",
    "moduleResolution": "node",
    "resolveJsonModule": true
  },
  "tstl": {
    "luaTarget": "JIT",
    "noHeader": true,
    "luaLibImport": "require-minimal",
    "noImplicitSelf": true
  }
}
-- normal output
return {
  __TS__Class = __TS__Class,
  __TS__ArrayIndexOf = __TS__ArrayIndexOf,
  __TS__Iterator = __TS__Iterator,
  __TS__New = __TS__New,
  __TS__ObjectKeys = __TS__ObjectKeys,
  __TS__ArrayPush = __TS__ArrayPush,
  __TS__AsyncAwaiter = __TS__AsyncAwaiter,
  __TS__Await = __TS__Await
}

-- third time output
return {
  __TS__AsyncAwaiter = __TS__AsyncAwaiter,
  __TS__Await = __TS__Await,
  __TS__New = __TS__New,
  __TS__ObjectKeys = __TS__ObjectKeys
}

It outputs as if some exports are missing.

Activity

  1. Perryvw commented on Aug 29, 2024

    @Perryvw
    Perryvw
    on Aug 29, 2024
    Member
    More actions

    This is probably due to require-minimal, I'm guessing it no longer occurs when your set "luaLibImport": "require"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.