Visitar URL original
Merge pull request #8185 from NativeScript/darind/css-parser-default · NativeScript/NativeScript@217d22e · GitHub
Skip to content

Commit 217d22e

Browse files
authored
Merge pull request #8185 from NativeScript/darind/css-parser-default
feat: Make css-tree the default parser
2 parents eac179c + c5c3840 commit 217d22e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎nativescript-core/ui/styling/style-scope.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ function ensureCssAnimationParserModule() {
5353
}
5454
}
5555

56-
let parser: "rework" | "nativescript" | "css-tree" = "rework";
56+
let parser: "rework" | "nativescript" | "css-tree" = "css-tree";
5757
try {
5858
const appConfig = require("~/package.json");
5959
if (appConfig) {
60-
if (appConfig.cssParser === "css-tree") {
61-
parser = "css-tree";
60+
if (appConfig.cssParser === "rework") {
61+
parser = "rework";
6262
} else if (appConfig.cssParser === "nativescript") {
6363
parser = "nativescript";
6464
}

0 commit comments

Comments
 (0)