fix: prefer null prefix for virtual modules
This commit is contained in:
parent
45fd06c9ed
commit
85ecaab0cf
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ import { STYLE_EXTENSIONS } from '../core/ssr/css.js';
|
||||||
const PLUGIN_NAME = '@astrojs/rollup-plugin-build-css';
|
const PLUGIN_NAME = '@astrojs/rollup-plugin-build-css';
|
||||||
|
|
||||||
// This is a virtual module that represents the .astro <style> usage on a page
|
// 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(
|
const cssRe = new RegExp(
|
||||||
`\\.(${Array.from(STYLE_EXTENSIONS)
|
`\\.(${Array.from(STYLE_EXTENSIONS)
|
||||||
|
|
Loading…
Reference in a new issue