-
Notifications
You must be signed in to change notification settings - Fork 4
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
Replace rollup with vite configuration #1364
Conversation
packages/cli/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.json
Show resolved
Hide resolved
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. |
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
@@ -14,7 +14,7 @@ | |||
}, | |||
"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", |
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.
Misaligned
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.
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.
The problem is reproduced in the master branch, so it's not related to this PR.
@IvayloG the problem with the nav-drawer is fixed. |
Closes #1052
Remove rollup for web components projects and add vite configuration.
Update versions of typescript, concurrently, rimraf, tslib, lit.