You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tool development could be simplified when the TypeScript compiler could be used as a library. The compiler currently does not check whether it is executed as a library (see tsc.ts).
To enable usage as a library the compiler could check whether it is executed as the main module. In addition, the ts variable should be exported. By doing this, module like typescript-api would become obsolete and tool development (like Browserify and Webpack integrations) would be easier.
The text was updated successfully, but these errors were encountered:
We don't support consuming the compiler outright (i.e. using anything within tsc.ts), but we will support using it as an NPM module - see instructions on #372.
Tool development could be simplified when the TypeScript compiler could be used as a library. The compiler currently does not check whether it is executed as a library (see tsc.ts).
To enable usage as a library the compiler could check whether it is executed as the main module. In addition, the
ts
variable should be exported. By doing this, module like typescript-api would become obsolete and tool development (like Browserify and Webpack integrations) would be easier.The text was updated successfully, but these errors were encountered: