Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 970526f

Browse filesBrowse 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
Copy full SHA for 970526f

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: packages/docs/docs/.vuepress/config.ts
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.