-
Notifications
You must be signed in to change notification settings - Fork 91
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: sourcemap not found and loading crash in nuxt #313
base: master
Are you sure you want to change the base?
Conversation
@@ -158,12 +176,16 @@ export function stylesPlugin (options: Options): Plugin { | |||
) | |||
) { | |||
if (options.styles === 'none') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Early return
@@ -15,101 +15,122 @@ function isSubdir (root: string, test: string) { | |||
return relative && !relative.startsWith('..') && !path.isAbsolute(relative) | |||
} | |||
|
|||
// FOR SOME REASON: /�plugin-vuetify:/home/jesse/Documents/personal/nuxt/vuetify/lib/styles/main.sass?direct 16:53:03 | |||
const PLUGIN_VIRTUAL_PREFIX = "virtual:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Hope this helps |
Hi @KaelWD . If it's not a problem, could you see if this PR makes sense please? |
@KaelWD Can you please review it? |
any news? |
will this merged? |
Hello guys, Any expected timeline on when this will be fixed? It's the only thing that stops Nuxt users from being able to customize SASS variables. |
Hello, is there any news on this? hope it gets merged soon |
This wasn't merged because it basically rewrites the entire plugin for no reason, if it's still relevant please only include changes necessary to fix the issue. |
Hello everything is fine?
This Pull request has 3 objectives:
BUGS:
The relative path of the target was making the nuxt load break, for some reason the path was generating a url that didn't match the file.
The other sourcemap bug was caused by the \0 prefix, where the virtual is what nuxt is prepared to read (I imagine this change won't break vite builds).
#311
#290
Thanks in advance for your attention, feel free to adjust.