diff --git a/packages/vite-plugin/src/stylesPlugin.ts b/packages/vite-plugin/src/stylesPlugin.ts index ff840f3..9ec70a7 100644 --- a/packages/vite-plugin/src/stylesPlugin.ts +++ b/packages/vite-plugin/src/stylesPlugin.ts @@ -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