Commit 22c9462 1 parent 5c31edc commit 22c9462 Copy full SHA for 22c9462
File tree 3 files changed +6
-28
lines changed
3 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ export default (rootEl) =>
9
9
10
10
for ( const [ key , value ] of Object . entries ( slotted ) ) {
11
11
props [ key ] = jsx `
12
- <${ Raw } value=${ value } $static />
13
- ` ;
12
+ <${ Raw } value=${ value } copy= ${ true } />
13
+ ` ;
14
14
}
15
15
16
16
if ( children != null ) {
17
17
children = jsx `
18
- <${ Raw } value=${ children } $static />
19
- ` ;
18
+ <${ Raw } value=${ children } copy= ${ true } />
19
+ ` ;
20
20
}
21
21
22
22
if ( client === "only" ) {
Original file line number Diff line number Diff line change @@ -8,28 +8,6 @@ export default function crankIntegration() {
8
8
clientEntrypoint : "astro-crank/client.js" ,
9
9
serverEntrypoint : "astro-crank/server.js" ,
10
10
jsxImportSource : "@b9g/crank" ,
11
- jsxTransformOptions : async ( ) => {
12
- const babelPluginReactJSX = await import (
13
- "@babel/plugin-transform-react-jsx"
14
- ) ;
15
- // “Come, let us go down and there confuse their language, so that
16
- // they may not understand one another's speech.”
17
- // — Genesis 11:7
18
- const jsx =
19
- babelPluginReactJSX . default . default ||
20
- babelPluginReactJSX . default ;
21
- return {
22
- plugins : [
23
- jsx (
24
- { } ,
25
- {
26
- runtime : "automatic" ,
27
- importSource : "@b9g/crank" ,
28
- } ,
29
- ) ,
30
- ] ,
31
- } ;
32
- } ,
33
11
} ) ;
34
12
} ,
35
13
} ,
Original file line number Diff line number Diff line change 22
22
"@babel/plugin-transform-react-jsx" : " ^7.17.12"
23
23
},
24
24
"peerDependencies" : {
25
- "astro" : " ^2 .0.0" ,
26
- "@b9g/crank" : " ^0.5.1 "
25
+ "astro" : " ^4 .0.0" ,
26
+ "@b9g/crank" : " ^0.6.0 "
27
27
},
28
28
"engines" : {
29
29
"node" : " >=16.12.0"
You can’t perform that action at this time.
0 commit comments