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: skip transform for vite-imagetools #68

Closed
wants to merge 1 commit into from

Conversation

brenelz
Copy link

@brenelz brenelz commented Dec 29, 2023

It seems to fix this specific issue. I'm just not 100% sure if it has any negative effects.

Seems to fix this issue: solidjs/solid-start#1195

Fix based on this pr: https://github.com/nuxt/framework/pull/9602/files

Before:
image

After:
image

Copy link

codesandbox bot commented Dec 29, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Dec 29, 2023

⚠️ No Changeset found

Latest commit: 89d300b

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

vercel bot commented Dec 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vinxi-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2023 6:38pm

@nksaraf
Copy link
Owner

nksaraf commented Dec 30, 2023

in that nuxt PR, it looks like they also a vite plugin that handles the skip_transform part. do we not need that as well? who receives this skip transform thing and what do they do with it?

@brenelz
Copy link
Author

brenelz commented Dec 30, 2023

in that nuxt PR, it looks like they also a vite plugin that handles the skip_transform part. do we not need that as well? who receives this skip transform thing and what do they do with it?

Yeah I thought i would have to add more like that pr but this seems to fix it. Not sure if "_skip_transform" is a special property vite looks for maybe?

@brenelz
Copy link
Author

brenelz commented Dec 30, 2023

Yeah I don't think this is quite right... it fixes it but no idea why. I can name the property anything

@nksaraf
Copy link
Owner

nksaraf commented Dec 30, 2023

in that nuxt PR, it looks like they also a vite plugin that handles the skip_transform part. do we not need that as well? who receives this skip transform thing and what do they do with it?

Yeah I thought i would have to add more like that pr but this seems to fix it. Not sure if "_skip_transform" is a special property vite looks for maybe?

I looked for it in the vite repo and there was nothing there

@nksaraf
Copy link
Owner

nksaraf commented Dec 30, 2023

And the nuxt fix is for this similar issue or something else?

@nksaraf
Copy link
Owner

nksaraf commented Dec 30, 2023

I explored this more and found other things that cumulatively will solve this issue:

#72
#71
solidjs/solid-start#1198

In terms of usage, we will have to use the function form of the plugins options:

import { defineConfig } from "@solidjs/start/config";
import { imagetools } from "vite-imagetools";

export default defineConfig({
  plugins: () => [imagetools({})],
});

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