Skip to content

Commit

Permalink
enable client:* attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
UpperCod committed Aug 26, 2022
1 parent fd4670c commit 6ade0cf
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
1 change: 1 addition & 0 deletions client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default () => {};
41 changes: 22 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atomico/astro",
"version": "0.4.0",
"version": "0.5.0",
"description": "Atomico + Astro build support",
"publishConfig": {
"access": "public"
Expand All @@ -10,9 +10,9 @@
"module": "./setup.js",
"exports": {
".": "./setup.js",
"./client": "./client.js",
"./server": "./server.js"
},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/atomicojs/astro.git"
Expand All @@ -34,13 +34,13 @@
"astro": "latest"
},
"dependencies": {
"@atomico/plugin-vite": "latest",
"@atomico/vite": "latest",
"atomico": "latest"
},
"peerDependencies": {
"@babel/plugin-transform-react-jsx": "^7.17.3",
"astro": "latest",
"@atomico/plugin-vite": "latest",
"@atomico/vite": "latest",
"atomico": "latest"
}
}
3 changes: 2 additions & 1 deletion setup.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import Atomico from "@atomico/plugin-vite";
import Atomico from "@atomico/vite";
/**
*
* @returns {import("astro").AstroRenderer}
*/
function getRenderer() {
return {
name: "@atomico/astro",
clientEntrypoint: "@atomico/astro/client",
serverEntrypoint: "@atomico/astro/server",
jsxImportSource: "atomico",
jsxTransformOptions: async () => {
Expand Down

0 comments on commit 6ade0cf

Please sign in to comment.