-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
build: update build to preserve modules and use @rollup/plugin-typescript #329
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 841f273:
|
025bb90
to
3c58be3
Compare
3c58be3
to
62a8838
Compare
62a8838
to
7c53e29
Compare
7c53e29
to
b4eec70
Compare
b4eec70
to
40c8e58
Compare
40c8e58
to
187c2ef
Compare
187c2ef
to
8d06039
Compare
8d06039
to
3587ed2
Compare
07d10e2
to
80c79f8
Compare
80c79f8
to
76a71a9
Compare
76a71a9
to
fea305a
Compare
fea305a
to
a6f55dc
Compare
a6f55dc
to
f2499fd
Compare
rollup.config.js
Outdated
input: './src/index.ts', | ||
{ | ||
...baseBundle, | ||
input: ['./src/index.ts', './src/types.tsx'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arturbien @luizbaldi apparently types breaking on the consumers was caused by types
not being exported.
…ript This changes the main output to also preserve modules, allowing tree shaking when users build their projects. This also replaces rollup-plugin-dts with the more traditional @rollup/plugin-typescript, which exports type declarations for individual files fixing issues with themes imports.
f2499fd
to
841f273
Compare
801f349
to
841f273
Compare
🎉 This PR is included in version 4.0.0-beta.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This changes the main output to also preserve modules, allowing tree shaking when users build their projects.
This also replaces rollup-plugin-dts with the more traditional @rollup/plugin-typescript, which exports type declarations for individual files fixing issues with themes imports.
It also adds missing
displayName
toSelect
,Toolbar
,TreeView
andWindowHeader
, as well as improves the return type generics ofSelect
andTreeView
.Closes #346, #347.