fix: prefer null prefix for virtual modules

This commit is contained in:
Nate Moore 2021-12-07 10:55:16 -06:00
parent 45fd06c9ed
commit 85ecaab0cf

View file

@ -9,9 +9,9 @@ import { STYLE_EXTENSIONS } from '../core/ssr/css.js';
const PLUGIN_NAME = '@astrojs/rollup-plugin-build-css';
// This is a virtual module that represents the .astro <style> usage on a page
const ASTRO_STYLE_PREFIX = '@astro-inline-style';
const ASTRO_STYLE_PREFIX = '\0astro-inline-style';
const ASTRO_PAGE_STYLE_PREFIX = '@astro-page-all-styles';
const ASTRO_PAGE_STYLE_PREFIX = '\0astro-page-all-styles';
const cssRe = new RegExp(
`\\.(${Array.from(STYLE_EXTENSIONS)