Skip to content

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

Open
@nkari82

Description

@nkari82

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.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy