Skip to content

getJSMainModuleName automatically adds .js #22347

Description

@atrauzzi

Environment

  React Native Environment Info:
    System:
      OS: Windows 10
      CPU: (8) x64 Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
      Memory: 6.39 GB / 15.94 GB
    Binaries:
      Yarn: 1.12.1 - C:\Users\atrauzzi\AppData\Roaming\npm\yarn.CMD
      npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

Description

I'm using TypeScript in my project, so if I want to change my entrypoint, setting getJSMainModuleName to the path of a TypeScript file (with a .ts or .tsx extension) results in something like src/Path/To/File.ts.js.

Reproducible Demo

Any generic React Native project with TS configured. Edit here.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions