Skip to content
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

chore: setup vue-tsc #8

Merged
merged 6 commits into from
May 11, 2024
Merged

chore: setup vue-tsc #8

merged 6 commits into from
May 11, 2024

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented May 11, 2024

Let's setup vue-tsc (and vue vscode extension locally) to know what's allowed when introducing server/client boundary convention.


Hmm, transforming lang="ts" is failing for .server.vue. It looks like this monkey-patch causing some issues:

const oldTransform = plugin.transform;
plugin.transform = async function (code, id, _options) {
// need to force non-ssr transform to always render vnode
return oldTransform.apply(this, [code, id, { ssr: false }]);
};

Comment on lines +110 to +114
tinyassert(typeof plugin.load === "function");
const oldLoad = plugin.load;
plugin.load = async function (id, _options) {
return oldLoad.apply(this, [id, { ssr: false }]);
};
Copy link
Owner Author

Choose a reason for hiding this comment

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

@hi-ogawa hi-ogawa marked this pull request as ready for review May 11, 2024 10:02
@hi-ogawa hi-ogawa merged commit 849afd1 into main May 11, 2024
1 check passed
@hi-ogawa hi-ogawa deleted the chore-tsc branch May 11, 2024 10:03
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.

1 participant