Skip to content

Commit

Permalink
fix: garfish plugin export path error (#6499)
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin authored Nov 6, 2024
1 parent 2c95681 commit c9ff8c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/selfish-hairs-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/plugin-garfish': patch
---

fix: garfish plugin export path error

fix: 修复 garfish 插件导出路径错误
2 changes: 1 addition & 1 deletion packages/runtime/plugin-garfish/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const garfishPlugin = (): CliPlugin<
'plugins',
);
if (masterApp) {
const addExportStatement = `export { default as garfish, default as masterApp } from '${metaName}/plugin-garfish/runtime'`;
const addExportStatement = `export { default as garfish, default as masterApp } from '@${metaName}/plugin-garfish/runtime'`;
logger('exportStatement', addExportStatement);
pluginsExportsUtils.addExport(addExportStatement);
}
Expand Down

0 comments on commit c9ff8c0

Please sign in to comment.