Skip to content

Commit

Permalink
chore: using export default at config.ts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ulivz committed Feb 25, 2023
1 parent 74d5eec commit 970526f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/.vuepress/config.ts
Expand Up @@ -6,7 +6,7 @@ import {
NavItems4ZH
} from './config/index'

export = defineConfig(ctx => ({
export default defineConfig(ctx => ({
theme: '@vuepress/vue',
dest: '../../vuepress',
head: [
Expand Down Expand Up @@ -123,4 +123,4 @@ export = defineConfig(ctx => ({
],
extraWatchFiles: ['.vuepress/config/**'],
evergreen: !ctx.isProd
}));
}))

0 comments on commit 970526f

Please sign in to comment.