Skip to content

[FEATURE REQUEST] Please supply a minified version with only transpilation functionality #9245

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

Open
quantuminformation opened this issue Jun 18, 2016 · 5 comments
Labels
API Relates to the public API for TypeScript Help Wanted You can do this Suggestion An idea for TypeScript
Milestone

Comments

@quantuminformation
Copy link

Please supply a minified version (inc npm). Please also let this be a new js file with only parts needed for transpilation.

This will aid our in-browser usages.

thanks

@HerringtonDarkholme
Copy link
Contributor

@guybedford @frankwallis You guys may be interested in this.

One prominent example is Angular2's demo page. In browser TypeScript compiler is really large...

@aluanhaddad
Copy link
Contributor

@HerringtonDarkholme Thanks for drawing attention to this

I've been using SystemJS with plugin-typescript for development for quite a while now. One of the really nice aspects of this workflow is the degree to which it simplifies the tool chain.

  1. No need to have a watch process trigger a browser reload when JavaScript is emitted.
  2. Makes it easy to work with mixed JavaScript and TypeScript projects.
  3. Easy to bundle when you want to deploy because you don't need to duplicate configuration.

I'm using VSCode with the tslint plugin and all I need to do is start lite-server.

The only issue is the speed of compilation so anything that would make that faster would be very much appreciated. (Note I set typescriptOptions.typeCheck: false in jspm.config.js because I look at errors + linter warnings in VSCode)

@HerringtonDarkholme
Copy link
Contributor

Here is my hacky workaround for this. It produces a transpiler-only version of tsc, with clousure compiler compressed. About 474kb ungzipped.

https://github.com/HerringtonDarkholme/TypeScript/tree/transpiler

@mhegazy mhegazy added Suggestion An idea for TypeScript Help Wanted You can do this API Relates to the public API for TypeScript labels Jun 22, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Jun 22, 2016

PRs are welcomed for minifing the services file and creating a new transpile target.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 22, 2016

i would say we should split the transpileModule/transpile to their own file, and add a new build target.

@mhegazy mhegazy added this to the Community milestone Jan 4, 2018
@RyanCavanaugh RyanCavanaugh modified the milestones: Community, Backlog Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Relates to the public API for TypeScript Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants