Can I request a new setting such as `configFileText`?
See original GitHub issueBecause 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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Because tsc’s
outFile
only supportsamd/system
mode. I coded anamd
module loader(adefine
function), and I can import this file viafiles
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’sdefine
function is not natively supported by webpack.Thanks for your patient answer. I’m going to follow: https://www.snowpack.dev/
Closing as stale. Please reopen if you’d like to work on this further.