Coder Social home page Coder Social logo

ts2js's People

Contributors

toddthomson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ts2js's Issues

Ts2Js only emits results of the ts.program root files?

In an effort to get a better understanding of what's happening under the hood, I started to examine the source code for Ts2Js, assuming that TsBundler and TsMinifier all rely on Ts2Js as a dependency.

in the Compiler.ts class file, I notice the emit method only iterates over the the file names specified as the program root file names, and to my understanding according to the TypeScript API these are the entry points into the application. My question is why are you not iterating over the entire list of source files form ts.program.getSourceFiles so that all the dependencies can be compiled as well? I believe TsBundler is supposed to compile dependencies as well?

I notice my output from TsMinifier results always shows only the entry file and this confused me because I assumed the dependencies would be minified as well? Maybe Ts.Bundler is doing additional work to compile and bundle dependencies that isn't happening in Ts2Js by default? I haven't gone through all of the source code but I thought I'd ask about this.

I can't get Compilation to work...do I need TypeScript 2.1?

I am having issues with ts2js...I don't think I can get the compiler to work...I don't get any files to be emitted...I am testing from a Windows machine although this shouldn't make a difference because I can get regular typescript projects to compile, is it only the latest version of typescript supported?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.