Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.claude/settings.local.json
.pnp.*
.yarn/*
!.yarn/patches
Expand Down
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

10 changes: 7 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
compressionLevel: mixed

enableGlobalCache: false

pnpMode: strict

pnpFallbackMode: none
2 changes: 1 addition & 1 deletion cosmos.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["react-cosmos-plugin-webpack"]
"plugins": ["react-cosmos-plugin-vite"]
}
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React Cosmos Vite Renderer</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
"repository": "https://github.com/react-cosmos/pnp-example.git",
"author": "Ovidiu Cherecheș <hello@ovidiu.ch>",
"license": "MIT",
"packageManager": "yarn@3.4.1",
"packageManager": "yarn@4.13.0",
"dependencies": {
"@babel/core": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"babel-loader": "^9.1.2",
"html-webpack-plugin": "^5.5.0",
"react": "^18.2.0",
"react-cosmos": "canary",
"react-cosmos-plugin-webpack": "canary",
"react-cosmos": "7.1.1",
"react-cosmos-plugin-vite": "7.1.1",
"react-dom": "^18.2.0",
"webpack": "^5.76.0"
"vite": "^5.0.0"
}
}
Loading