Skip to content

Commit c0b6d11

Browse files
authored
docs: fix modifyEntryExport hook example (#3710)
1 parent 1714ada commit c0b6d11

File tree

2 files changed

+2
-2
lines changed
  • packages/document/main-doc/docs

2 files changed

+2
-2
lines changed

packages/document/main-doc/docs/en/guides/topic-detail/framework-plugin/hook-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ import type { CliPlugin } from '@modern-js/core';
438438
export default (): CliPlugin => ({
439439
setup(api) {
440440
return {
441-
modifyEntryImports({ entrypoint, exportStatement }) {
441+
modifyEntryExport({ entrypoint, exportStatement }) {
442442
return {
443443
entrypoint,
444444
exportStatement: [`export const foo = 'test'`, exportStatement].join(

packages/document/main-doc/docs/zh/guides/topic-detail/framework-plugin/hook-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ import type { CliPlugin } from '@modern-js/core';
438438
export default (): CliPlugin => ({
439439
setup(api) {
440440
return {
441-
modifyEntryImports({ entrypoint, exportStatement }) {
441+
modifyEntryExport({ entrypoint, exportStatement }) {
442442
return {
443443
entrypoint,
444444
exportStatement: [`export const foo = 'test'`, exportStatement].join(

0 commit comments

Comments
 (0)