diff --git a/packages/document/module-doc/docs/en/api/config/build-config.mdx b/packages/document/module-doc/docs/en/api/config/build-config.mdx index ecc13f27c1f2..c2652d5a932a 100644 --- a/packages/document/module-doc/docs/en/api/config/build-config.mdx +++ b/packages/document/module-doc/docs/en/api/config/build-config.mdx @@ -1282,7 +1282,9 @@ Set `inject` to `true` to enable this feature: ```js title="modern.config.ts" export default defineConfig({ buildConfig: { - inject: true, + style: { + inject: true, + }, }, }); ``` diff --git a/packages/document/module-doc/docs/zh/api/config/build-config.mdx b/packages/document/module-doc/docs/zh/api/config/build-config.mdx index 44a244890adf..db641e4347d0 100644 --- a/packages/document/module-doc/docs/zh/api/config/build-config.mdx +++ b/packages/document/module-doc/docs/zh/api/config/build-config.mdx @@ -485,7 +485,6 @@ export default defineConfig({ }); ``` - ## dts.only 是否在构建时只生成类型文件,不生成 JavaScript 产物文件。 @@ -1281,7 +1280,9 @@ export default defineConfig({ ```js title="modern.config.ts" export default defineConfig({ buildConfig: { - inject: true, + style: { + inject: true, + }, }, }); ```