4

Closed

Dealing with #import "file.js"

description

I bring this question from StackOverflow to here because I think there is no way to deal with some statements like:
#import "file.js"
and possibly other statements in other dialects of javascript like Apple's UIAutomation.

I think a solution would be to add some compiler directives. That would tell TypeScript not to process a certain piece of code but just copy it into the result js file.
I imagine something like GCC's pragmas (?)
Closed Jan 24, 2013 at 8:24 PM by jonturner
If you want to concatenate, the best way in JavaScript is to use a step in the toolchain which handles concatenation. This is generally more flexible, and better supported, than using preprocessor directives in the source code.

comments