Skip to content

Commit 70faa1f

Browse files
committed
fix: module export configuration error
1 parent c8b2739 commit 70faa1f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

create/template/.vitepress/config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import baseConfig from "vitepress-theme-mild/config";
2+
13
/** @type {import('vitepress').UserConfigExport<import('vitepress-theme-mild').ThemeConfig>} */
24
export default {
35
title: 'My Blog',

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
"exports": {
2020
".": {
2121
"types": "./types/index.d.ts",
22-
"import": "./index.js"
22+
"default": "./index.js"
2323
},
2424
"./config": {
2525
"types": "./config/index.d.ts",
26-
"import": "./config/index.js"
26+
"default": "./config/index.js"
2727
}
2828
},
29-
"main": "./index.js",
3029
"module": "./index.js",
3130
"types": "./types/index.d.ts",
3231
"files": [

0 commit comments

Comments
 (0)