Skip to content

Commit 970526f

Browse files
committed
chore: using export default at config.ts
Current `target` is `es2018`, using `export =` (export assignment) will trigger `ts(1203)`<sub>1</sub> error: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [1] https://github.com/microsoft/TypeScript/blob/e9868e96e87996df46a13b4323866acc639e71ce/src/compiler/diagnosticMessages.json#L634
1 parent 74d5eec commit 970526f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docs/docs/.vuepress/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
NavItems4ZH
77
} from './config/index'
88

9-
export = defineConfig(ctx => ({
9+
export default defineConfig(ctx => ({
1010
theme: '@vuepress/vue',
1111
dest: '../../vuepress',
1212
head: [
@@ -123,4 +123,4 @@ export = defineConfig(ctx => ({
123123
],
124124
extraWatchFiles: ['.vuepress/config/**'],
125125
evergreen: !ctx.isProd
126-
}));
126+
}))

0 commit comments

Comments
 (0)