From ab4c389ede1f4a40da2a170fcbd5bc934d0718cb Mon Sep 17 00:00:00 2001 From: Darin Dimitrov Date: Tue, 10 Dec 2019 17:16:20 +0200 Subject: [PATCH] feat: Make css-tree the default parser --- nativescript-core/ui/styling/style-scope.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nativescript-core/ui/styling/style-scope.ts b/nativescript-core/ui/styling/style-scope.ts index ea4087ccd..06c0e8000 100644 --- a/nativescript-core/ui/styling/style-scope.ts +++ b/nativescript-core/ui/styling/style-scope.ts @@ -53,12 +53,12 @@ function ensureCssAnimationParserModule() { } } -let parser: "rework" | "nativescript" | "css-tree" = "rework"; +let parser: "rework" | "nativescript" | "css-tree" = "css-tree"; try { const appConfig = require("~/package.json"); if (appConfig) { - if (appConfig.cssParser === "css-tree") { - parser = "css-tree"; + if (appConfig.cssParser === "rework") { + parser = "rework"; } else if (appConfig.cssParser === "nativescript") { parser = "nativescript"; }