From 2a503ca2501e705430c0c35cb7c8279927c1d4d5 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 16 Oct 2024 01:16:21 +0800 Subject: [PATCH] chore: rename old tsconfig paths --- website/docusaurus.config.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 7237830..e7915b9 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -75,7 +75,10 @@ const config: Config = { ], ], - plugins: [require.resolve('docusaurus-plugin-image-zoom'), MyAliasPlugin], + plugins: [ + require.resolve('docusaurus-plugin-image-zoom'), + TsConfigPathsPlugin, + ], themeConfig: { // Replace with your project's social card @@ -212,10 +215,9 @@ const config: Config = { module.exports = config; -function MyAliasPlugin(context, options) { - console.log('MyAliasPlugin', context, options); +function TsConfigPathsPlugin(context, options) { return { - name: 'my-alias-plugin', + name: 'tsconfig-paths-plugin', configureWebpack() { return { resolve: {