diff --git a/packages/plugin-core/src/index.ts b/packages/plugin-core/src/index.ts index c496b335f..8984fc2f5 100644 --- a/packages/plugin-core/src/index.ts +++ b/packages/plugin-core/src/index.ts @@ -23,7 +23,7 @@ export default (api) => { // get runtime module const runtimeModules = plugins.map(({ pluginPath }) => { const modulePath = path.join(path.dirname(pluginPath), 'module.js'); - return fse.existsSync(modulePath) ? modulePath : false; + return fse.existsSync(modulePath) ? modulePath.split(path.sep).join('/') : false; }).filter(Boolean); // modify entry to src/app