Skip to content
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

No AMD with multiple files: tsc --out onefile.js --module amd "file1.ts" "file2.ts" #289

Closed
electricessence opened this issue Jul 29, 2014 · 2 comments
Labels
Duplicate An existing issue was already created Suggestion An idea for TypeScript

Comments

@electricessence
Copy link

When merging your files into one file, the --module amd flag makes no difference.
There needs to be a way that if all the files listed define the same root namespace, then it should compile into an amd module. Am I missing something here?

I did not write "export = " in any of these files. Not much documentation about how to fix this.

@electricessence
Copy link
Author

I guess to be more correct, there needs to be a way to leave individual classes separate and precomipile them into a single ts file that deploys well to javascript. :|
So...
ModuleA.ClassA.ts, and ModuleB.ClassB.ts live in the same namespace and if specified to combine the files, it should have a smarter option for combining/compiling them.

@RyanCavanaugh
Copy link
Member

Duplicate of #17

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants