File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' astro ' : patch
3
+ ---
4
+
5
+ Ensure JSX does not reference server entrypoint
Original file line number Diff line number Diff line change 1
1
import type { PluginObj } from '@babel/core' ;
2
2
import * as t from '@babel/types' ;
3
3
import { pathToFileURL } from 'node:url' ;
4
- import { ClientOnlyPlaceholder } from '../runtime/server/index.js' ;
5
4
import type { PluginMetadata } from '../vite-plugin-astro/types' ;
6
5
6
+ const ClientOnlyPlaceholder = 'astro-client-only' ;
7
+
7
8
function isComponent ( tagName : string ) {
8
9
return (
9
10
( tagName [ 0 ] && tagName [ 0 ] . toLowerCase ( ) !== tagName [ 0 ] ) ||
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ import { Renderer } from './render/index.js';
34
34
35
35
import { addAttribute } from './render/index.js' ;
36
36
37
- export const ClientOnlyPlaceholder = 'astro-client-only' ;
38
-
39
37
// Used in creating the component. aka the main export.
40
38
export function createComponent ( cb : AstroComponentFactory ) {
41
39
// Add a flag to this callback to mark it as an Astro component
Original file line number Diff line number Diff line change 2
2
import { SSRResult } from '../../@types/astro.js' ;
3
3
import { AstroJSX , isVNode } from '../../jsx-runtime/index.js' ;
4
4
import {
5
- ClientOnlyPlaceholder ,
6
5
escapeHTML ,
7
6
HTMLString ,
8
7
markHTMLString ,
@@ -14,6 +13,8 @@ import {
14
13
voidElementNames ,
15
14
} from './index.js' ;
16
15
16
+ const ClientOnlyPlaceholder = 'astro-client-only' ;
17
+
17
18
const skipAstroJSXCheck = new WeakSet ( ) ;
18
19
let originalConsoleError : any ;
19
20
let consoleFilterRefs = 0 ;
You can’t perform that action at this time.
0 commit comments