@natjswenson/devlog 0.1.1 → 0.1.2
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 +1 -1
- package/preview/vite.config.js +7 -0
package/package.json
CHANGED
package/preview/vite.config.js
CHANGED
|
@@ -3,6 +3,13 @@ import react from '@vitejs/plugin-react';
|
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
plugins: [react()],
|
|
6
|
+
// Force pre-bundling of these packages so Vite's CJS interop adds the
|
|
7
|
+
// default-export shim. Without this, react-markdown's transitive
|
|
8
|
+
// `style-to-js` (CJS-only) blows up with "does not provide an export
|
|
9
|
+
// named 'default'" when imported by hast-util-to-jsx-runtime.
|
|
10
|
+
optimizeDeps: {
|
|
11
|
+
include: ['react-markdown', 'remark-gfm', 'style-to-js'],
|
|
12
|
+
},
|
|
6
13
|
server: {
|
|
7
14
|
port: 5173,
|
|
8
15
|
open: true,
|