Skip to content

Update to Vue 3 #1388

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

Merged
merged 3 commits into from
Feb 10, 2022
Merged

Update to Vue 3 #1388

merged 3 commits into from
Feb 10, 2022

Conversation

rictic
Copy link
Contributor

@rictic rictic commented Feb 10, 2022

No description provided.

@rictic rictic mentioned this pull request Feb 10, 2022
1 task
@github-actions
Copy link
Contributor

Copy link
Collaborator

@AndrewJakubowicz AndrewJakubowicz left a comment

Choose a reason for hiding this comment

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

A couple minor nits. Thank you for doing this!

@@ -14,11 +14,11 @@
"karma-firefox-launcher": "2.1.2",
"karma-sourcemap-loader": "0.3.8",
"karma-webpack": "5.0.0",
"vue-template-compiler": "2.6.14",
"@vue/compiler-sfc": "^3.1.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

app.mount(scratch);
let wc = scratch.querySelector("#wc");
await nextTick();
await nextTick();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Need tick twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, needed. Will leave a comment.

const app = createApp(ComponentWithDeclarativeEvent)
app.config.compilerOptions.isCustomElement = isCustomElement;
app.mount(scratch);
let wc = scratch.querySelector("#wc");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nits that don't need action. Prefer const to let here and on handled.

"webpack": "5.65.0"
},
"dependencies": {
"@webcomponents/webcomponentsjs": "2.6.0",
"vue": "2.6.14"
"vue": "^3.1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Bump minor version to 3.2.30

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the '^' operator takes care of that, and the package-lock.json actually specifies the version that we test with

@rictic rictic merged commit 525c0ec into main Feb 10, 2022
@rictic rictic deleted the vue-3 branch February 10, 2022 22:57
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.

2 participants