From a84c2fe02a9a3adf83b190b86e52075cae358496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E5=BF=A0?= Date: Sat, 22 Feb 2020 11:57:56 +0800 Subject: [PATCH] fix: module path --- packages/plugin-core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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