-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Should commonSourceDirectory be undefined when outDir, sourceRoot, mapRoot is not specified? #3327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That is the only time it is used. if non of these options are defined, the commonSourceDirectory is not needed. what are you trying to do? |
I wrote a umd library that allow user to write code that can be used in browser global, requireJS, and commonJS as-is (i.e. without recompile, see [https://github.com/unional/write-umd]). I use this internally so I create a fork of TypeScript to generate that (see [https://github.com/unional/TypeScript]). The code will use For example, if I have a file at C:\Users\me\codes\myProject\src\Company\app\common\MyClass.ts and the The |
looks like this is a change local to your fork then. up to you to decided what when is commonSourceDirectory needs to be evaluated. |
Ok. Thanks. |
@unional I get that this is different ^ but we do have some |
Yes, I'm aware of the UMD pattern support. The difficulty I have with the UMD pattern is that it doesn't not support browser global properly. e.g.: You have a module under Company/app/components/compX.js which is Company.app.components.compX You can require it by require('Company/app/components/compX'); in AMD or CommonJS. Therefore I wrote |
And you encourage me to update the README. :) |
@unional have you considered |
@mhegazy do you mean if I have a file |
Possibly :) |
Currently I use It would be even better If I can get the path to the config file and do the right adjustments (e.g. |
I'm writing some custom code in my fork and realize it is not populated. If needed, I can create a pull request for it. (should be just 4 lines of change).
The text was updated successfully, but these errors were encountered: