Replace rollup with vite configuration#1364
Merged
Conversation
Lipata
suggested changes
Jan 21, 2025
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.json
Show resolved
Hide resolved
Member
|
IMO you assuming this is going to be a Lit based application I highly recommend mimicking what the default Vite lit-ts template is doing. Most of the plugins the package enforces are opt-in and it should be up to the user to add and configure based on their specific use-case. |
Member
|
Also, sticking to ES2021 and ESM output is an acceptable default option. The web components package targets evergreen browsers and ES2021 is a nice baseline which the relevant browsers already cover. |
…s2022, remove vite html plugin and vite plugin babel from the configuration, update vite to 6.0.10
Lipata
previously approved these changes
Jan 22, 2025
IvayloG
reviewed
Jan 22, 2025
| "scripts": { | ||
| "start": "tsc && concurrently -k -r \"tsc --watch\" \"wds\"", | ||
| "build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/rollup/dist/bin/rollup -c rollup.config.mjs", | ||
| "build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build", |
Collaborator
Contributor
Author
There was a problem hiding this comment.
The problem is reproduced in the master branch, so it's not related to this PR.
Contributor
|
@IvayloG the problem with the nav-drawer is fixed. |
Lipata
approved these changes
Jan 22, 2025
IvayloG
approved these changes
Jan 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #1052
Remove rollup for web components projects and add vite configuration.
Update versions of typescript, concurrently, rimraf, tslib, lit.