diff --git a/website/docs/guide/use-child/others.md b/website/docs/guide/use-child/others.md index 7efdece8..ad42cda7 100644 --- a/website/docs/guide/use-child/others.md +++ b/website/docs/guide/use-child/others.md @@ -532,12 +532,12 @@ import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; + import htmlPlugin from 'vite-plugin-index-html'; - export default defineConfig({ plugins: [ vue(), + htmlPlugin({ -+ input: './src/main.ts' ++ input: './src/main.ts', // 指定确定的入口文件 ++ preserveEntrySignatures: "exports-only", // 确保入口文件导出生命周期函数 + }) ],