Skip to content

chore: Migrated Vite to Rollup, Removed Vite related dependencies #6423

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

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

yuhengshs
Copy link
Contributor

@yuhengshs yuhengshs commented Mar 12, 2025

Description of changes

This PR serves the purpose of migrating from Vite to Rollup in vue package

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
@yuhengshs yuhengshs requested a review from a team as a code owner March 12, 2025 16:25
Copy link

changeset-bot bot commented Mar 12, 2025

⚠️ No Changeset found

Latest commit: 933afee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@calebpollman calebpollman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for handling this @yuhengshs! Have some questions on the configuration changes and there's some cleanup that can be addressed before merging. Curious how we are validating the compatibility of the new build artifacts against the existing artifacts?

@yuhengshs yuhengshs force-pushed the chore/migrate-vite-to-rollup branch 3 times, most recently from 07413ea to 3763460 Compare March 18, 2025 23:15
…cessive unnecessary sutff
@yuhengshs yuhengshs force-pushed the chore/migrate-vite-to-rollup branch from 9e4236d to 6b2a8ad Compare May 22, 2025 10:29
@yuhengshs yuhengshs force-pushed the chore/migrate-vite-to-rollup branch from 15ff344 to 89d3db4 Compare May 22, 2025 11:02
@yuhengshs yuhengshs force-pushed the chore/migrate-vite-to-rollup branch from 850860a to 2b64ed6 Compare May 22, 2025 11:33
yuhengshs and others added 2 commits May 22, 2025 04:35
Comment on lines -15 to +20
"vue": "^3.0.5",
"vue": "^3.5.14",
"vue-router": "4"
},
"devDependencies": {
"@types/node": "18.8.0",
"@vue/compiler-sfc": "^3.0.5",
"@vue/compiler-sfc": "^3.5.14",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these changes, as a reviewer it makes me question whether the changes impact the build artifacts

Comment on lines +4 to +11
import AmplifyUIVue from '@aws-amplify/ui-vue';
import '@aws-amplify/ui-vue/styles.css';

createApp(App).use(router).mount('#app');
// Create app and register plugins
const app = createApp(App);
app.use(router);
app.use(AmplifyUIVue);
app.mount('#app');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these changes, as a reviewer it makes me question whether the changes impact the build artifacts

Comment on lines +24 to +38
// Export all primitive base components
export { default as BaseInput } from './primitives/base-input.vue';
export { default as BaseLabel } from './primitives/base-label.vue';
export { default as BaseSelect } from './primitives/base-select.vue';
export { default as BaseWrapper } from './primitives/base-wrapper.vue';
export { default as BaseAlert } from './primitives/base-alert.vue';
export { default as BaseBox } from './primitives/base-box.vue';
export { default as BaseFieldSet } from './primitives/base-field-set.vue';
export { default as BaseFooter } from './primitives/base-footer.vue';
export { default as BaseForm } from './primitives/base-form.vue';
export { default as BaseHeading } from './primitives/base-heading.vue';
export { default as BaseSpacer } from './primitives/base-spacer.vue';
export { default as BaseText } from './primitives/base-text.vue';
export { default as BaseTwoTabs } from './primitives/base-two-tabs.vue';
export { default as BaseTwoTabItem } from './primitives/base-two-tab-item.vue';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these new public exports?

Comment on lines +81 to +94
app.component('BaseInput', BaseInput);
app.component('BaseLabel', BaseLabel);
app.component('BaseSelect', BaseSelect);
app.component('BaseWrapper', BaseWrapper);
app.component('BaseAlert', BaseAlert);
app.component('BaseBox', BaseBox);
app.component('BaseFieldSet', BaseFieldSet);
app.component('BaseFooter', BaseFooter);
app.component('BaseForm', BaseForm);
app.component('BaseHeading', BaseHeading);
app.component('BaseSpacer', BaseSpacer);
app.component('BaseText', BaseText);
app.component('BaseTwoTabs', BaseTwoTabs);
app.component('BaseTwoTabItem', BaseTwoTabItem);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changed that requires the registaration of these modules?

Comment on lines +24 to +25
:required="false"
:disabled="false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these changes, as a reviewer it makes me question whether the changes impact the build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants