question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transform Module Path documentation

See original GitHub issue

I have this config

module.exports = {
  getTransformModulePath() {
    require.resolve("react-native-typescript-transformer");
    require.resolve("react-native-graphql-transformer");
  },
  getSourceExts() {
    return ["ts", "tsx", "graphql"];
  }
};

Basically I want to add Typescript and GraphQL transform from those packages.

I tried to find any information about transform because the issue I am facing right now is that I can only return a single transform so basically either Typescript or GraphQL but not both.

I don’t know what to do because I dont understand what is the idea about this function, there is not documentation about it and every link on the internet either point me to something else or just using a single transformer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristerkaricommented, Aug 2, 2018

That’s at least the only way I’m aware of. It would indeed be nice to do it in a simpler way.

0reactions
kristerkaricommented, Oct 23, 2018

Yeah probably you do, as the docs seem to suggest that you get the full Typescript support that way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Module Resolution - TypeScript
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >
latest - Environment Modules
Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH , MANPATH , etc. Modulefiles may be...
Read more >
Transformation modules | Memgraph Docs
Memgraph supports user-defined transformations procedures written in Python and C that act on data received from a streaming engine. These transformation ...
Read more >
os.path — Common pathname manipulations — Python 3.11 ...
This module implements some useful functions on pathnames. To read or write files see open() , and for accessing the filesystem see the...
Read more >
typescript-transform-paths - npm
Transforms module resolution paths using TypeScript path mapping and/or custom paths. Latest version: 3.4.4, last published: 2 months ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found