Giter Site home page Giter Site logo

Comments (4)

frigus02 avatar frigus02 commented on June 1, 2024

Sorry for the slow response. I overlooked this issue in the last days.

Accessor support was added in d65bd3e.

We haven't had a tsickle release since then, mostly because we consider tsickle unsupported. Tsickle is only useful with Closure Compiler and unless you have specific use cases you're probably better off with one of the newer minifiers out there.

from tsickle.

simonsarris avatar simonsarris commented on June 1, 2024

I see. I am using the Closure Compiler - in fact I've been using the Closure Compiler since about 2011, maybe 2012, to compile a library (GoJS). When we moved to TypeScript I originally looked at tsickle but rejected it, and instead wrote my own convoluted script to massage the TS output to work in the CC. This has been fine for years.

However, Closure Compiler recently deprecated the @expose flag, which I was making heavy use of, so I figured I should make real externs, hence renewed interest in how tsickle is doing it.

Thank you for replying. I suppose I should close this.

from tsickle.

frigus02 avatar frigus02 commented on June 1, 2024

Yeah, I'm sorry about that. I would recommend you try one of the newer minifiers (terser, esbuild, swc) and see if you can get similar results from them. We found these optimize most open source libraries really well and are much faster than Closure Compiler.

from tsickle.

simonsarris avatar simonsarris commented on June 1, 2024

The closure Compiler is a beautiful piece of software, and the size gains are really good (though people don't care as much about bundle size a decade later), so I hope to keep using it. But I may need to roll my own externs-maker. Thanks for you explanations.

from tsickle.

Related Issues (20)

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.