Skip to content

Commit

Permalink
feat: support direct url from nuxt via ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
franz-bendezu committed Jan 7, 2024
1 parent 9790719 commit d91b362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite-plugin/src/stylesPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export function stylesPlugin (options: Options): Plugin {
return PLUGIN_VIRTUAL_PREFIX + source.slice(1)
} else if (source.startsWith(`/@id/__x00__${PLUGIN_VIRTUAL_NAME}:`)) {
return PLUGIN_VIRTUAL_PREFIX + source.slice(12)
} else if (source.startsWith(`/${VIRTUAL_MODULE_ID}/`)) {
return source.slice(1)
}

return null
Expand Down

0 comments on commit d91b362

Please sign in to comment.