fix: module path

This commit is contained in:
思忠 2020-02-22 11:57:56 +08:00
parent a545afad84
commit a84c2fe02a
1 changed files with 1 additions and 1 deletions

View File

@ -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