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.

Can I request a new setting such as `configFileText`?

See original GitHub issue

Because the compilerOptions.module in the project’s tsconfig.json is set to amd, and compilerOptions.outFile is set.

When using webpack for packaging, I can’t override the outFile setting in the compilerOptions, because webpack is packaged with commonjs by default.

I know I can add a different tsconfig.json file and set the options.configFile at the same time to solve this problem. Or set webpack to amd module as well.

But I would like to have a way to reuse the original tsconfig.json and also use the default module settings of webpack.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jason-grimmcommented, Feb 14, 2021

Because tsc’s outFile only supports amd/system mode. I coded an amd module loader(a define function), and I can import this file via files in tscconfig.json. But I don’t think this feature is mature enough to put in realase version.

Webpack is powerful and can package all the source code into one file with commonjs module, but amd’s define function is not natively supported by webpack.

Thanks for your patient answer. I’m going to follow: https://www.snowpack.dev/

0reactions
stale[bot]commented, Apr 28, 2022

Closing as stale. Please reopen if you’d like to work on this further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config file text logic when upgrading/reinstalling - Community
Look under SYSTEM CONFIGURATION. You can probably use 'XML File Changes' or 'Text File Changes' to do what you need to do.
Read more >
OCI CLI Command Reference 2.9.1 documentation
The full path to a CA certificate bundle to be used for SSL verification. This will override the default CA certificate bundle. --config-file...
Read more >
Config Checks and Messages - Wireless Troubleshooting Tools
Found new start of a controller config, while processing a section (abrupt end of previous configuration). The trigger is the string "System Inventory"....
Read more >
Configure Hugo
Configuration File. Hugo uses the config.toml , config.yaml , or config.json (if found in the site root) as the default site config file....
Read more >
Appendix A. Configuration Options - GitLab
The script will be run after the new files have been linked into place. Note, this code is always run when recursive is...
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