Update packages/webpack5/src/helpers/flavor.ts

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
This commit is contained in:
Martin Guillon
2021-01-05 13:46:31 +01:00
committed by GitHub
parent 0de6451b9f
commit d2342de862

View File

@@ -8,7 +8,12 @@ import { error } from './log';
*/
export function projectUsesCustomFlavor(): boolean {
const dependencies = getAllDependencies();
return [
'vue',
'angular',
'react',
'svelte'
].includes(determineProjectFlavor())
if (dependencies.includes('nativescript-vue') ||
dependencies.includes('@nativescript/angular') ||
dependencies.includes('react-nativescript') ||