Giter Site home page Giter Site logo

Comments (4)

Kegulf avatar Kegulf commented on June 20, 2024

I see that before the rollupTypes the someCommonCode.d.ts actually exists, which is fascinating 😁
It might be possible to check if the contents of the files is used by several entrypoints, and avoid merging it into the rolled up typefiles?
image

from vite-plugin-dts.

qmhc avatar qmhc commented on June 20, 2024

Currently this is hard to implement.

The rollup process is powered by @microsoft/api-extractor and it's difficult (probably noway) to change its behavior.

from vite-plugin-dts.

Kegulf avatar Kegulf commented on June 20, 2024

I see, I don't have any suggestions on how to fix this without a rewrite, unless ms-api-extractor can be configured to fix it.

from vite-plugin-dts.

NullVoxPopuli avatar NullVoxPopuli commented on June 20, 2024

I just ran in to a very similar problem with symbols being duplicated between entrypoints.

With multiple entrypoints and rolled up types, I would still expect a common .d.ts file extracted that all entrypoint .d.ts files can import from so that the unique symbol behavior that tsc enforces works correctly between the multiple entrypoints. Today, every usage of a unique symbol in each entrypoint is treated as a totally different unique symbol in the .d.ts output :(

from vite-plugin-dts.

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.