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

fix/feat(vite-plugin): Improve and future-proof the transform checks #14151

Merged

Conversation

yusufkandemir
Copy link
Member

What kind of change does this PR introduce?

  • Bugfix
  • Feature

Does this PR introduce a breaking change?

  • No

The PR fulfills these requirements:

  • It's submitted to the dev branch (or v[X] branch)

Other information:

See vitejs/vite-plugin-vue#138 for the issue this PR aims to solve. See vitejs/vite-plugin-vue#138 for some insights behind the solution.

As a side-effect, we now support auto-importing separate files like <template src="whatever.html"> and <script src="test.js"> which has been requested in #12319.

We are indirectly depending on it through the resource ids. So, if a new
major version of it gets released before a new major version of Vite or
vice-versa, we might not be able to support one or the other.
Making it a peer dep will allows us to selectively support versions.
@Shinigami92
Copy link
Contributor

Tested locally with pnpm file: and it works 👍

@rstoenescu
Copy link
Member

@yusufkandemir Awesome work! Please confirm this has been tested with JS, with TS, with script setup, without script setup.

@yusufkandemir
Copy link
Member Author

@rstoenescu works with all those combinations, with html/pug, with css/scss/sass with or without scoped, with or without src on template/script/style(it's not possible to use <script setup> with src because of the magic and stuff, Vue limitation)

@rstoenescu rstoenescu merged commit 6035657 into quasarframework:dev Aug 9, 2022
@yusufkandemir yusufkandemir deleted the fix-vite-plugin-pug-scoped-issue branch August 9, 2022 11:21
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.

3 participants