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.

Support TS for indexTransform

See original GitHub issue

Now, I can’t import ts file in index-transform.js, see the code snippet below (just in case):

import { environment } form 'environment.ts'
module.exports = (targetOptions, indexHtml) => {
  // use environment info to do some things
}

So I think it’s better if TS is supported for indexTransform then we can use TypeScipt great features if needed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
just-jebcommented, Feb 24, 2020

You should create a fork from this repo, implement the changes there and create a PR from the fork.

0reactions
just-jebcommented, Feb 27, 2020

Closed by #689

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specify a custom tsconfig for indexTransform ... - GitHub
Both customWebpackConfing.ts and indexTransform.ts are loaded with ts-node using tsconfig.app.json as a configuration file.
Read more >
tensorstore.IndexTransform.__call__ - TensorStore
tensorstore.IndexTransform.__call__(self, indices: Sequence[int]) → Tuple[int, ...] Maps an input index vector to an output index vector. Parameters¶.
Read more >
Angular CLI custom webpack config - Stack Overflow
You can use angular-builders library that allows you extending the existing browser and server targets (and more than that) with a custom ...
Read more >
Environment-Based Index HTML with Angular CLI
Now that we've added it to our project, we can use the index transform option ... indexTransform is a path (relative to the...
Read more >
[Angular 8+] Are you intending to duplicate your index.html?
ts file at the root folder that provides a function to change the content of the index.html. Note that: indexTransform only support TypeScript ......
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