Git Product home page Git Product logo

Comments (6)

Floffah avatar Floffah commented on May 29, 2024 1

Also it seems that you should be using both createIncrementalProgram and createIncrementalCompilerHost in order to avoid the tsbuildinfo file to be ignore as explained here

According to the release notes

For creating incremental builds, users can leverage the createIncrementalProgram and createIncrementalCompilerHost APIs.

You seem to be missing the createIncrementalCompilerHost usage at https://github.com/Floffah/esbuild-plugin-d.ts/blob/master/src/plugin.ts#L61

I'll add these when I get time to implement the automatic tsbuildinfo system

from esbuild-plugin-d.ts.

Floffah avatar Floffah commented on May 29, 2024

I think the main cause for this is that I made a method that turns this on automatically and that may be messing with it. Ill have a look

from esbuild-plugin-d.ts.

gablabelle avatar gablabelle commented on May 29, 2024

I think the main cause for this is that I made a method that turns this on automatically and that may be messing with it. Ill have a look!

I might be wrong but I feel this could be a huge improvement for performances in our monorepo.

from esbuild-plugin-d.ts.

Floffah avatar Floffah commented on May 29, 2024

I might be wrong but I feel this could be a huge improvement for performances in our monorepo.

I agree, for a monorepo this may be very benefitial.
I had a look and it seems to do it here https://github.com/Floffah/esbuild-plugin-d.ts/blob/master/src/plugin.ts#L50-L58 if it is able to find your package.json although this may be broken and may be worth removing or making it toggleable.
I will make a new release with these fixes soon

from esbuild-plugin-d.ts.

gablabelle avatar gablabelle commented on May 29, 2024

Also it seems that you should be using both createIncrementalProgram and createIncrementalCompilerHost in order to avoid the tsbuildinfo file to be ignore as explained here

According to the release notes

For creating incremental builds, users can leverage the createIncrementalProgram and createIncrementalCompilerHost APIs.

You seem to be missing the createIncrementalCompilerHost usage at https://github.com/Floffah/esbuild-plugin-d.ts/blob/master/src/plugin.ts#L61

from esbuild-plugin-d.ts.

Floffah avatar Floffah commented on May 29, 2024

Took a while to get round to it but I have switched to incremental programs and hosts and saw the build time for the test go down to 50ms. Let me know if this broke anything after installing 1.1.0

from esbuild-plugin-d.ts.

Related Issues (7)

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.