Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
feat: export App as default from core-ui package
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Loading branch information
vholik and claude committed Feb 5, 2026
commit a8eac5188baf28797aae02f7ba83eca8c32b83d7
2 changes: 1 addition & 1 deletion apps/vendor/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import '@mercurjs/core-ui/index.css'
import App from '@mercurjs/core-ui/app'
import App from '@mercurjs/core-ui'

createRoot(document.getElementById('root')!).render(
<StrictMode>
Expand Down
2 changes: 1 addition & 1 deletion apps/vendor/src/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function Sidebar() {
return <div>Sidebar 123123</div>
return null
}
4 changes: 0 additions & 4 deletions packages/core-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./app": {
"types": "./dist/app.d.ts",
"import": "./dist/app.js"
},
"./vite-plugin": {
"types": "./dist/vite-plugin/index.d.ts",
"import": "./dist/vite-plugin/index.cjs"
Expand Down
2 changes: 0 additions & 2 deletions packages/core-ui/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { Toaster, TooltipProvider } from "@medusajs/ui"
const queryClient = new QueryClient()

export default function App() {


return (
<TooltipProvider>
<HelmetProvider>
Expand Down
2 changes: 2 additions & 0 deletions packages/core-ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ export interface MercurConfig {
Sidebar?: string
}
}

export { default } from './app'
2 changes: 1 addition & 1 deletion packages/core-ui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup"

export default defineConfig([
{
entry: ['src/index.css', 'src/app.tsx', 'src/index.ts'],
entry: ['src/index.ts', 'src/index.css'],
format: ["esm"],
dts: true,
clean: true,
Expand Down