Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

build: configure rollup-plugin-dts to use special compilerOptions #338

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

Closed
Parent: Beta
WesSouza wants to merge 2 commits into beta from build/wes/dts-config

Conversation

@WesSouza
Copy link
Member

@WesSouza WesSouza commented Aug 4, 2022

An alternative to #329, passing specific TypeScript compilerOptions to rollup-plugin-dts.

WesSouza added 2 commits August 4, 2022 16:21
This restores importing React and the ESLint rule react/react-in-jsx-scope to preserve React 16 compatibility.
This also moves some types around so themes can be exported as a standalone with its own TypeScript config.
@WesSouza WesSouza added the bug Something isn't working label Aug 4, 2022
@WesSouza WesSouza self-assigned this Aug 4, 2022
Copy link

vercel bot commented Aug 4, 2022
edited
Loading

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react95 ✅ Ready (Inspect) Visit Preview Aug 4, 2022 at 8:58PM (UTC)

Copy link

codesandbox-ci bot commented Aug 4, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4724175:

Sandbox Source
React95 template Configuration

Copy link
Member Author

WesSouza commented Aug 5, 2022

@arturbien @luizbaldi although this exported files on the correct locations, it still didn't generate one file per theme as expected.

Any objection to either:

  • Export one bundle with all themes in one object
  • Export the themes together with react95 and only have one entry

Copy link
Member

Ideally we should expose all components and themes in a way that would allow devs to import only the things they need (like MUI does):

import Button from '@mui/material/Button';

I am worried that if we bundle themes together, we're going to increase the bundle size. Especially if we keep adding more and more themes. I'll try to look into that during the weekend.

@luizbaldi any ideas?

Copy link
Member Author

WesSouza commented Aug 5, 2022

@arturbien then we need to change rollup for the main entry too, it currently bundles the entire file into one export.

Copy link
Member Author

WesSouza commented Aug 5, 2022

#329 works nicely now.

@WesSouza WesSouza deleted the build/wes/dts-config branch August 5, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@luizbaldi luizbaldi Awaiting requested review from luizbaldi

@arturbien arturbien Awaiting requested review from arturbien

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /