@natjswenson/devlog 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natjswenson/devlog",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Daily dev log generator — Claude Code skill + preview app for publishing git-based dev logs to your site",
5
5
  "license": "MIT",
6
6
  "author": "Nate Swenson",
@@ -3,6 +3,22 @@ import react from '@vitejs/plugin-react';
3
3
 
4
4
  export default defineConfig({
5
5
  plugins: [react()],
6
+ // Force pre-bundling so Vite's CJS interop adds the default/named-export
7
+ // shims. Skipping any of these caused render failures in the npx-installed
8
+ // layout (react-dom/client missing createRoot, react-markdown's transitive
9
+ // style-to-js missing default, etc.).
10
+ optimizeDeps: {
11
+ include: [
12
+ 'react',
13
+ 'react/jsx-runtime',
14
+ 'react/jsx-dev-runtime',
15
+ 'react-dom',
16
+ 'react-dom/client',
17
+ 'react-markdown',
18
+ 'remark-gfm',
19
+ 'style-to-js',
20
+ ],
21
+ },
6
22
  server: {
7
23
  port: 5173,
8
24
  open: true,