diff --git a/.changeset/selfish-hairs-dress.md b/.changeset/selfish-hairs-dress.md new file mode 100644 index 000000000000..7d191bb9e5e9 --- /dev/null +++ b/.changeset/selfish-hairs-dress.md @@ -0,0 +1,7 @@ +--- +'@modern-js/plugin-garfish': patch +--- + +fix: garfish plugin export path error + +fix: 修复 garfish 插件导出路径错误 diff --git a/packages/runtime/plugin-garfish/src/cli/index.ts b/packages/runtime/plugin-garfish/src/cli/index.ts index 7beadde16b0f..6aa533d9db41 100644 --- a/packages/runtime/plugin-garfish/src/cli/index.ts +++ b/packages/runtime/plugin-garfish/src/cli/index.ts @@ -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); }