Skip to content

Commit

Permalink
feat(web): add web render demo build script
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Oct 23, 2024
1 parent 8f8aae3 commit 62002b7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ module.exports = {
console.warn('* Using the @hippy/react defined in package.json');
}

// If @hippy/web-renderer was built exist in packages directory then make an alias
// Remove the section if you don't use it
const webRendererPath = path.resolve(__dirname, '../../../packages/hippy-web-renderer/dist');
if (fs.existsSync(path.resolve(webRendererPath, 'index.js'))) {
console.warn(`* Using the @hippy/web-renderer in ${webRendererPath} as @hippy/web-renderer alias`);
aliases['@hippy/web-renderer'] = webRendererPath;
} else {
console.warn('* Using the @hippy/web-renderer defined in package.json');
}


return aliases;
})(),
},
Expand Down

0 comments on commit 62002b7

Please sign in to comment.